aad_b2c_webview icon indicating copy to clipboard operation
aad_b2c_webview copied to clipboard

Custom scopes cannot be added when refreshing tokens

Open harmjanr opened this issue 1 year ago • 1 comments

I have setup some custom scopes: For example, I added the client id to the scopes to use access tokens, which is required for the web implementation of my project.

In client_authentication.dart, the providedScopes param available in the getAllTokens method. However, this param is missing in refreshTokens. Because of this, the response of refreshing the tokens does not contain an access_token, but only an id_token and a refresh_token.

harmjanr avatar Jan 03 '25 12:01 harmjanr

I created a PR to support this: https://github.com/microsoft/aad_b2c_webview/pull/48

harmjanr avatar Jan 03 '25 13:01 harmjanr