Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open my application j hipster without authentication

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?

like image 425
vineesh Avatar asked Dec 14 '22 00:12

vineesh


2 Answers

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

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

for

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

like image 81
tntiago Avatar answered Dec 16 '22 12:12

tntiago


To disable Authentication :

  • replace .antMatchers("/api/**").authenticated() with .antMatchers("/**").permitAll() in SecurityConfiguration.java
  • Remove from all *.html, all directives of *jhiHasAnyAuthority in all *.html files
  • Remove from all *.html, all directives of [ngSwitch]="isAuthenticated() and all it's *ngSwitchCase
  • return true in all checkLogin( methods in all *service.ts files
  • see the doc about authorizations.
  • i wish it was easier...
like image 37
Lolik Samuel Avatar answered Dec 16 '22 14:12

Lolik Samuel