Skip to content
Snippets Groups Projects
Commit 22d4dab6 authored by Gokul Nagare's avatar Gokul Nagare
Browse files

ibm develop sync with og master

parent 4363f20e
No related branches found
No related tags found
1 merge request!35ibm develop sync with og master
Pipeline #22425 passed with warnings
......@@ -15,7 +15,7 @@
<app.version>1</app.version>
<app.id>crs-converter-ocp</app.id>
<!--azure.version>2.3.2</azure.version-->
<os-core-lib-ibm.version>0.3.6-SNAPSHOT</os-core-lib-ibm.version>
<os-core-lib-ibm.version>0.3.8-SNAPSHOT</os-core-lib-ibm.version>
</properties>
<prerequisites>
......@@ -72,7 +72,6 @@
</execution>
</executions>
</plugin>
</plugins>
</build>
......
/* Licensed Materials - Property of IBM */
/* (c) Copyright IBM Corp. 2020. All Rights Reserved.*/
package org.opengroup.osdu.crs;
import org.springframework.boot.SpringApplication;
......
/* Licensed Materials - Property of IBM */
/* (c) Copyright IBM Corp. 2020. All Rights Reserved.*/
package org.opengroup.osdu.crs.security;
import java.io.IOException;
......@@ -52,17 +55,15 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter implements Acce
@Override
protected void configure(HttpSecurity http) throws Exception {
http.csrf().disable()
.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.NEVER)
.and()
.authorizeRequests()
.antMatchers(AUTH_WHITELIST).permitAll()
.anyRequest().authenticated()
.and()
.addFilterBefore(authFilter, UsernamePasswordAuthenticationFilter.class);
//.oauth2ResourceServer().jwt();
http.csrf().disable()
.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.NEVER)
.and()
.authorizeRequests()
.antMatchers(AUTH_WHITELIST).permitAll()
.anyRequest().authenticated()
.and()
.addFilterBefore(authFilter, UsernamePasswordAuthenticationFilter.class);
//.oauth2ResourceServer().jwt();
}
public SecurityConfig(@Value("${ENTITLEMENT_URL}") String entitlementsUrl, HandlerExceptionResolver handlerExceptionResolver) {
......@@ -98,6 +99,5 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter implements Acce
out.print(body);
out.flush();
}
}
\ No newline at end of file
# Licensed Materials - Property of IBM
# (c) Copyright IBM Corp. 2020. All Rights Reserved.
import os
from keycloak import KeycloakOpenID
......
# Licensed Materials - Property of IBM
# (c) Copyright IBM Corp. 2020. All Rights Reserved.
import sys
sys.path.append("..")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment