spring-guides / tut-spring-security-and-angular-js

Spring Security and Angular:: A tutorial on how to use Spring Security with a single page application with various backend architectures, ranging from a simple single server to an API gateway with OAuth2 authentication.

Home Page:https://spring.io/guides/tutorials/spring-security-and-angular-js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I create a public REST API using the Auth-Resource-UI approach?

cvenegasj opened this issue · comments

I want to create a public REST API but apparently, the Resource Server is only allowed to respond to authenticated requests. Where should I put the public rest controllers? Is there a way for using the same Resource Server an avoid creating the entity and dao clases again in other server?

Thanks in advance for the reply.

Take a look at the Spring Security User Guide and other resources (e.g. type "security" in the search box at https://spring.io/guides). It's just a matter of changing the access rules for the paths you want to protect/unprotect.