File tree Expand file tree Collapse file tree
src/main/java/eu/openanalytics/containerproxy/security Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -143,15 +143,15 @@ protected void configure(HttpSecurity http) throws Exception {
143143 http .addFilter (new BasicAuthenticationFilter (authenticationManagerBean ()));
144144 }
145145
146- // The `anyRequest` method may only be called once.
147- // Therefore we call it here, make our changes to it and forward it to the various authentication backends
148- ExpressionUrlAuthorizationConfigurer <HttpSecurity >.AuthorizedUrl anyRequestConfigurer = http .authorizeRequests ().anyRequest ();
149146
150147 if (auth .hasAuthorization ()) {
148+ // The `anyRequest` method may only be called once.
149+ // Therefore we call it here, make our changes to it and forward it to the various authentication backends
150+ ExpressionUrlAuthorizationConfigurer <HttpSecurity >.AuthorizedUrl anyRequestConfigurer = http .authorizeRequests ().anyRequest ();
151151 anyRequestConfigurer .fullyAuthenticated ();
152+ auth .configureHttpSecurity (http , anyRequestConfigurer );
152153 }
153154
154- auth .configureHttpSecurity (http , anyRequestConfigurer );
155155
156156 }
157157
You can’t perform that action at this time.
0 commit comments