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

Following this article.
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.