Skip to content

How integrate armeria with spring-security #5364

Answered by trustin
evgeny-mordyasov asked this question in Q&A
Discussion options

You must be logged in to vote

Because Spring Security works only at the Spring layer, it will not affect the REST services written in Armeria API unfortunately. There are two options here:

  1. Replace Spring Security with Armeria's AuthService and/or CorsService.
    • If you're using Spring Security for relatively simple scenarious, you could easily migrate to Armeria's authn/z decorators. Please feel free to let us know what features of Spring Security you're using, then we'd be happy to provide more assistance.
    • This option is recommended when you have a plan to use other Armeria services, such as gRPC and GraphQL.
  2. Migrate the existing Armeria API REST services to Spring Web, so that Spring Security is applied to all serv…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@evgeny-mordyasov
Comment options

Answer selected by evgeny-mordyasov
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