You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Directly use the given JPA integration code to integrate the client oidc. After successful authentication, insufficient appears when obtaining user information_ Scope error
Describe the bug
When converting objects, scopes are lost, resulting in the failure of the oidc client to obtain user information
Code location:docs/modules/guides/examples[JpaOAuth2AuthorizationService.toObject()]
To Reproduce
Directly use the given JPA integration code to integrate the client oidc. After successful authentication, insufficient appears when obtaining user information_ Scope error
Expected behavior
if (entity.getAccessTokenValue() != null) {
OAuth2AccessToken accessToken = new OAuth2AccessToken(
OAuth2AccessToken.TokenType.BEARER,
entity.getAccessTokenValue(),
entity.getAccessTokenIssuedAt(),
entity.getAccessTokenExpiresAt(),
### Sets.newHashSet(entity.getAccessTokenScopes().split(",")));
builder.token(accessToken, metadata -> metadata.putAll(parseMap(entity.getAccessTokenMetadata())));
}
The text was updated successfully, but these errors were encountered: