FusionAuth / fusionauth-android-sdk

Android SDK for FusionAuth
https://fusionauth.io
Other
3 stars 1 forks source link

fix: set additional scopes and make email_verified optional #63

Closed ColinFrick closed 1 month ago

ColinFrick commented 1 month ago

FusionAuth 1.50.0 introduced the Scope Handling Policy. In new installation it's set to scopeHandlingPolicy.Strict, which causes previously available fields to not be included in the response.

The fusionauth_config.json was updated to include the additional scopes email and profile.

In the UserInfo class, the required field email_verified was made optional, providing a null default value to prevent issues when this field is not provided.

Closes #62

Aaron-Ritter commented 1 month ago

For reference: UserInfo Response: In Strict mode the response claims are populated based on the scope values of the provided token and available information on the User object. This behavior more closely aligns with the OpenID Connect 1.0 specification recommendations.