Our organization is using the
okta-spring-boot-starter in our web application. We have a claim in our access tokens that is a
: delimited array. Our application can also be access from several URLs. I’d like to select a value from this array based on the URL used to access the site.
Ideally, I’d like to modify the JWT and select the value. I’ve been digging into how the Okta library works, but I’m not sure I’ll be able to do what I want. I could do something more rudimentary, such as extracting the URL, and perform some logic in a web filter, then passing it downstream as a request header or parameter.
What other alternatives do I have?