IdentityServer4 icon indicating copy to clipboard operation
IdentityServer4 copied to clipboard

Regarding the "Allow access token in browser" setting.

Open haugan opened this issue 7 years ago • 3 comments

Even if I set AllowAccessTokensViaBrowser = false in my Client configuration, I'm still able to find the token in my Firefox console by looking at the request headers. I think I'm misunderstanding how this is supposed to work, so could you please enlighten a (poor) noob? I wasn't able to find properly dumbed down examples of this elsewhere! :)

Example code using PKCE flow: new Client { // .. AllowedGrantTypes = GrantTypes.Code, AllowAccessTokensViaBrowser = false, RequirePkce = true // .. }

haugan avatar Nov 20 '19 14:11 haugan

the flag AllowAccessTokensViaBrowser really controls if we allow an access token to be returned to the client in the URL from the authorize endpoint (as opposed to the normal mechanism of the token endpoint).

brockallen avatar Nov 20 '19 17:11 brockallen

Oh, ok. I guess I got some reading to do. Thanks for your swift answer Brock! :)

haugan avatar Nov 21 '19 06:11 haugan

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jan 10 '20 13:01 lock[bot]