Compare commits
3 Commits
0.1.0
...
d11ac9a2ee
| Author | SHA1 | Date | |
|---|---|---|---|
| d11ac9a2ee | |||
|
|
a90d98aa1e | ||
|
|
e440935c14 |
10
build.gradle
10
build.gradle
@@ -5,7 +5,15 @@ buildscript {
|
|||||||
classpath 'io.spring.nohttp:nohttp-gradle:0.0.5.RELEASE'
|
classpath 'io.spring.nohttp:nohttp-gradle:0.0.5.RELEASE'
|
||||||
}
|
}
|
||||||
repositories {
|
repositories {
|
||||||
maven { url 'https://repo.spring.io/plugins-snapshot' }
|
maven {
|
||||||
|
url = 'https://repo.spring.io/plugins-snapshot'
|
||||||
|
if (project.hasProperty('artifactoryUsername')) {
|
||||||
|
credentials {
|
||||||
|
username "$artifactoryUsername"
|
||||||
|
password "$artifactoryPassword"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
maven { url 'https://plugins.gradle.org/m2/' }
|
maven { url 'https://plugins.gradle.org/m2/' }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
version=0.1.0
|
version=0.1.1-SNAPSHOT
|
||||||
springBootVersion=2.4.2
|
springBootVersion=2.4.2
|
||||||
org.gradle.jvmargs=-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError
|
org.gradle.jvmargs=-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError
|
||||||
org.gradle.parallel=true
|
org.gradle.parallel=true
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ package org.springframework.security.oauth2.core;
|
|||||||
public final class Version {
|
public final class Version {
|
||||||
private static final int MAJOR = 0;
|
private static final int MAJOR = 0;
|
||||||
private static final int MINOR = 1;
|
private static final int MINOR = 1;
|
||||||
private static final int PATCH = 0;
|
private static final int PATCH = 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Global Serialization value for Spring Security Authorization Server classes.
|
* Global Serialization value for Spring Security Authorization Server classes.
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user