This commit is contained in:
Kuamr Shubham
2020-04-17 17:36:18 +05:30
parent 7e9b944cc4
commit 1ebe5b00c4
4 changed files with 11 additions and 3 deletions

View File

@@ -0,0 +1,8 @@
package com.DeploymentPortal.api.Manifest;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(HttpStatus.BAD_REQUEST)
public class ManifestDataInvalid extends Throwable {
}

View File

@@ -14,7 +14,7 @@ class OktaOAuth2WebSecurityConfigurerAdapter extends WebSecurityConfigurerAdapte
@Bean
public JwtDecoder customDecoder(OAuth2ResourceServerProperties properties) {
NimbusJwtDecoder jwtDecoder = NimbusJwtDecoder
.withJwkSetUri("https://btech-christuniversity.okta.com/oauth2/v1/keys")
.withJwkSetUri("https://navi-2020.okta.com/oauth2/v1/keys")
.build();
return jwtDecoder;

View File

@@ -7,7 +7,7 @@ spring.jpa.database-platform=org.hibernate.dialect.PostgreSQL9Dialect
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
server.port=9090
#security.oauth2.resource.jwk.key-set-uri=https://btech-christuniversity.okta.com/oauth2/v1/keys
spring.main.allow.bean-definition-overriding=true
#okta.oauth2.localTokenValidation=false

View File

@@ -7,7 +7,7 @@ spring.jpa.database-platform=org.hibernate.dialect.PostgreSQL9Dialect
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
server.port=9090
#spring.main.allow.bean-definition-overriding=true
#security.oauth2.resource.jwk.key-set-uri=https://btech-christuniversity.okta.com/oauth2/v1/keys
#okta.oauth2.audience=http://localhost:8080