Skip to content
Discussion options

You must be logged in to vote

prefix /api/ for all of the Third party Related API's

That's exactly what I'd recommend: define two sets of routes with a different prefix and only one with the TokenRelay= filter.

Note that for best efficiency, routes without the TokenRelay= filter should be processed with a stateless security filter chain, or without security at all (the tokens are checked by the downstream resource servers).

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-oauth2-client</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-oauth2-resource-server</artifactId>
</dependency>
<dependency>…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@saravanad
Comment options

Answer selected by ch4mpy
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