Skip to content
Snippets Groups Projects
Commit e9f710d3 authored by Mirco Nasuti's avatar Mirco Nasuti
Browse files

added comment in config to change authorization request redirect URI

parent 923b6ab3
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,8 @@ hbp:
tokenName: oauth_token
authenticationScheme: query
clientAuthenticationScheme: form
# use-current-uri: false # For production server
# pre-established-redirect-uri: https://mip.humanbrainproject.eu/services/login/hbp # For production server
resource:
userInfoUri: https://services.humanbrainproject.eu/oidc/v0/api/user/me
......
......@@ -224,17 +224,6 @@ public static void main(String[] args) {
return registration;
}
/*
private Filter ssoFilter() {
OAuth2ClientAuthenticationProcessingFilter hbpFilter = new OAuth2ClientAuthenticationProcessingFilter("/login/hbp");
OAuth2RestTemplate hbpTemplate = new OAuth2RestTemplate(hbp(), oauth2ClientContext);
hbpFilter.setAuthenticationSuccessHandler(new SimpleUrlAuthenticationSuccessHandler("http://frontend/#/home"));
hbpFilter.setRestTemplate(hbpTemplate);
hbpFilter.setTokenServices(new UserInfoTokenServices(hbpResource().getUserInfoUri(), hbp().getClientId()));
return hbpFilter;
}
*/
@Bean(name="hbp")
@ConfigurationProperties("hbp.client")
OAuth2ProtectedResourceDetails hbp() {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment