Add and custom auth server base url for issuer
This commit is contained in:
parent
a90d98aa1e
commit
d11ac9a2ee
@ -43,6 +43,10 @@ import org.springframework.security.oauth2.server.authorization.config.ProviderS
|
|||||||
@Import(OAuth2AuthorizationServerConfiguration.class)
|
@Import(OAuth2AuthorizationServerConfiguration.class)
|
||||||
public class AuthorizationServerConfig {
|
public class AuthorizationServerConfig {
|
||||||
|
|
||||||
|
private String getIssuer() {
|
||||||
|
return "http://localhost:9000";
|
||||||
|
}
|
||||||
|
|
||||||
// @formatter:off
|
// @formatter:off
|
||||||
@Bean
|
@Bean
|
||||||
public RegisteredClientRepository registeredClientRepository() {
|
public RegisteredClientRepository registeredClientRepository() {
|
||||||
@ -73,6 +77,6 @@ public class AuthorizationServerConfig {
|
|||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public ProviderSettings providerSettings() {
|
public ProviderSettings providerSettings() {
|
||||||
return new ProviderSettings().issuer("http://auth-server:9000");
|
return new ProviderSettings().issuer(getIssuer());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ spring:
|
|||||||
client-name: messaging-client-client-credentials
|
client-name: messaging-client-client-credentials
|
||||||
provider:
|
provider:
|
||||||
spring:
|
spring:
|
||||||
issuer-uri: http://auth-server:9000
|
issuer-uri: http://localhost:9000
|
||||||
|
|
||||||
messages:
|
messages:
|
||||||
base-uri: http://localhost:8090/messages
|
base-uri: http://localhost:8090/messages
|
||||||
|
@ -14,4 +14,4 @@ spring:
|
|||||||
oauth2:
|
oauth2:
|
||||||
resourceserver:
|
resourceserver:
|
||||||
jwt:
|
jwt:
|
||||||
issuer-uri: http://auth-server:9000
|
issuer-uri: http://localhost:9000
|
||||||
|
Loading…
Reference in New Issue
Block a user