Skip to content

Granted Authorities from an endpoint? #205

Answered by ch4mpy
david-randoll asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @david-randoll !

I'm glad to read that spring-addons is useful to you ;)

As a preamble, the best option is probably to find a way to keep the tokens small enough to avoid that roundtrip to the authorization server: it will add some latency to the requests and some extra load on the authorization server (you could use some caching, but still, these is quite some resources wasting). As it is pretty rare to need hundreds of roles for a single client, an option I'd recommend to evaluate is to limit the usage of "realm" roles as much as possible and favor the usage of "client" roles. With correct client roles mappers, you could probably seriously reduce tokens size.

That said, yes you can u…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@david-randoll
Comment options

Answer selected by david-randoll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants