Skip to content

Commit 921c35a

Browse files
ymajorosymajoros2
authored andcommitted
service worker: further word of explanation
1 parent 86bacfd commit 921c35a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

draft-ietf-oauth-browser-based-apps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ In this scenario, a [Service Worker](https://developer.mozilla.org/en-US/docs/We
382382
Service workers are inherently safe from XSS, because the browser APIs allowing to register one take an origin-constrained URL.
383383
They can thus be used as a safe store for tokens.
384384

385-
In this architecture, a service worker intercepts calls from the frontend to the resource server. As such, it can completely isolate calls to the authorization server from XSS attack surface.
385+
In this architecture, a service worker intercepts calls from the frontend to the resource server. As such, it completely isolates calls to the authorization server from XSS attack surface, as all tokens and PKCE secrets are safely kept there without any access from other JavaScript contexts. The service worker is then solely responsible for adding authentication headers to calls to the resource server.
386386

387387
Resource Authorization
388388
User Application Service Worker server server

0 commit comments

Comments
 (0)