Can't use group claims to get the user's group

Following this article.
https://developer.okta.com/blog/2017/10/13/okta-groups-spring-security
When I tried to login, the user account and admin account all got unauthorized page. Any idea what might be wrong?

Did you add a groups claim to your access token as specified in the post?

I believe I do.

Can you try adding it to you ID token and see if that helps?

1 Like

It worked! Really appreciate it!
What’s the difference between these two?
I just found my logout button doesn’t work. Any idea what happened?

I believe this happens because Spring Security looks in the ID token.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.