Skip to content
Snippets Groups Projects
Commit 14f4ed0e authored by Michael Simon's avatar Michael Simon
Browse files

NO_STORY null check for refresh token

parent f41e3da4
No related branches found
No related tags found
No related merge requests found
......@@ -157,6 +157,10 @@ public class OidcUserUpdater extends AbstractUserUpdater<OidcUserEntity> {
*/
OidcRpConfigurationEntity rpConfig = user.getIssuer();
if (user.getAttributeStore().get("refreshToken") == null) {
throw new UserUpdateException("refresh token is null");
}
RefreshToken token = new RefreshToken(user.getAttributeStore().get("refreshToken"));
AuthorizationGrant refreshTokenGrant = new RefreshTokenGrant(token);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment