Closed brett-estabrook closed 2 years ago
The operation performed at this location:
https://github.com/okta/okta-oidc-xamarin/blob/1804287da7dfa2f4e74feb2ea697c8520ed41f1f/Okta.Xamarin/Okta.Xamarin/OidcClient.cs#L255
Forces the scope to be offline_access and openid. This may be different than the original access token.
It should make use of the scopes defined in the config. Something like below.
https://github.com/okta/okta-oidc-xamarin/blob/1804287da7dfa2f4e74feb2ea697c8520ed41f1f/Okta.Xamarin/Okta.Xamarin/OidcClient.cs#L500
It only uses the scopes offline_access and openid
First sign in with additional scopes (Like email), then refresh the token. You will now have fewer scopes
No response
Xamarin.Forms 5.x
3.x
iOS
Thank you for reporting the bug. I've added an item to our backlog to address it.
New nuget package should be published shortly.
Describe the bug?
The operation performed at this location:
https://github.com/okta/okta-oidc-xamarin/blob/1804287da7dfa2f4e74feb2ea697c8520ed41f1f/Okta.Xamarin/Okta.Xamarin/OidcClient.cs#L255
Forces the scope to be offline_access and openid. This may be different than the original access token.
What is expected to happen?
It should make use of the scopes defined in the config. Something like below.
https://github.com/okta/okta-oidc-xamarin/blob/1804287da7dfa2f4e74feb2ea697c8520ed41f1f/Okta.Xamarin/Okta.Xamarin/OidcClient.cs#L500
What is the actual behavior?
It only uses the scopes offline_access and openid
Reproduction Steps?
First sign in with additional scopes (Like email), then refresh the token. You will now have fewer scopes
Additional Information?
No response
Dotnet Information
Xamarin.Forms 5.x
SDK Version
3.x
OS version
iOS