Skip to content

Commit 2e8169b

Browse files
pavankjaddaPavan Jadda
authored andcommitted
Add Employee Project database View database and employee project components in ANgular UI
1 parent 8855de5 commit 2e8169b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/main/java/com/pj/keycloak/security/SecurityConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ protected void configure(HttpSecurity http) throws Exception
5555
super.configure(http);
5656

5757
http.authorizeRequests()
58-
.antMatchers("/api/**")
59-
.hasAnyAuthority(Roles.ROLE_ADMIN)
58+
//.antMatchers("/api/**").hasAnyAuthority(Roles.ROLE_ADMIN)
59+
.antMatchers("/api/**").permitAll()
6060
.anyRequest()
6161
.permitAll();
6262

src/main/webapp/spring-data-ui/src/app/interceptors/token-interceptor.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ export class TokenInterceptor implements HttpInterceptor
1616
const token = this.tokenExtractor.getToken() as string;
1717
request = request.clone({
1818
setHeaders: {
19-
"Authorization": "Bearer " + authToken,
20-
"X-XSRF-TOKEN": token
19+
"Authorization": "Bearer " + authToken
2120
}
2221
});
2322
return next.handle(request);

0 commit comments

Comments
 (0)