How to open my application j hipster without authentication

荒凉一梦 提交于 2019-12-12 04:26:36

问题


I have created my j hipster application called Bookstore.After running my application it will go authentication . i need not this authentication .if there is any way to open my application without j hipster log in page?


回答1:


In the path "app/config" there is the class MicroserviceSecurityConfiguration.class Change the permissions there, in the case

("/api/**").Authenticated()

for

("/api/**").permitAll()




回答2:


Assuming you want to build an application that keeps JHipster admin features:

  • Remove *jhiHasAnyAuthorities directives on HTML elements you want to make public
  • Same thing for *ngSwitch directives dealing with isAuthenticated(), see the doc about authorizations.


来源:https://stackoverflow.com/questions/42393231/how-to-open-my-application-j-hipster-without-authentication

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!