How integrate armeria with spring-security #5364
-
I have two microservices. They have a REST API on armeria. I would like to enable spring-security for my application. But spring-security works with tomcat. I tried using the 'spring-boot-tomcat' example from https://github.com/line/armeria-examples. Yes, it does work, but for REST services described using spring-web. If I want to extend security to REST services described with armeria, they don't work. Is there a solution for this? If yes, please share. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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:
Given Spring Security is tightly coupled with Spring Framework, it would be unrealistic to make Spring Security to support at Armeria decorator level, but please feel free to correct me - I'd be happy to reinvestigate whether it's a feasible idea or not. |
Beta Was this translation helpful? Give feedback.
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:
AuthService
and/orCorsService
.