removed basic hhtp authentication
This commit is contained in:
parent
9d38d86c03
commit
2a57236c9a
|
@ -67,10 +67,6 @@ public class AaiSecurityConfiguration extends WebSecurityConfigurerAdapter {
|
||||||
.regexMatchers("/metrics").permitAll()
|
.regexMatchers("/metrics").permitAll()
|
||||||
.anyRequest().authenticated()
|
.anyRequest().authenticated()
|
||||||
.and()
|
.and()
|
||||||
// .anonymous().disable()
|
|
||||||
.httpBasic()
|
|
||||||
.authenticationEntryPoint(authenticationEntryPoint())
|
|
||||||
.and()
|
|
||||||
.logout().logoutUrl("/openid_logout")
|
.logout().logoutUrl("/openid_logout")
|
||||||
.invalidateHttpSession(true)
|
.invalidateHttpSession(true)
|
||||||
.deleteCookies("openAIRESession")
|
.deleteCookies("openAIRESession")
|
||||||
|
@ -144,12 +140,6 @@ public class AaiSecurityConfiguration extends WebSecurityConfigurerAdapter {
|
||||||
return serverConfiguration;
|
return serverConfiguration;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
|
||||||
public LoginUrlAuthenticationEntryPoint authenticationEntryPoint() {
|
|
||||||
return new LoginUrlAuthenticationEntryPoint("/openid_connect_login");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public OIDCAuthenticationFilter openIdConnectAuthenticationFilter() throws Exception {
|
public OIDCAuthenticationFilter openIdConnectAuthenticationFilter() throws Exception {
|
||||||
OIDCAuthenticationFilter oidc = new OIDCAuthenticationFilter();
|
OIDCAuthenticationFilter oidc = new OIDCAuthenticationFilter();
|
||||||
|
|
Loading…
Reference in New Issue