add.
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user