Skip to content

Commit c3402b0

Browse files
author
Steve Riesenberg
committed
Replaced auth-server with localhost
1 parent 3241445 commit c3402b0

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

samples/README.adoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ The username is `user1` and the password is `password`.
77
== Run the Sample
88

99
* Run Authorization Server -> `./gradlew -b samples/default-authorizationserver/samples-default-authorizationserver.gradle bootRun`
10-
** *IMPORTANT:* Make sure to modify your `/etc/hosts` file to avoid problems with session cookie overwrites between `messages-client` and `default-authorizationserver`. Simply add the entry `127.0.0.1 auth-server`
1110
* Run Resource Server -> `./gradlew -b samples/messages-resource/samples-messages-resource.gradle bootRun`
1211
* Run Client -> `./gradlew -b samples/messages-client/samples-messages-client.gradle bootRun`
1312
* Go to `http://127.0.0.1:8080`

samples/custom-consent-authorizationserver/src/main/java/sample/config/AuthorizationServerConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020-2021 the original author or authors.
2+
* Copyright 2020-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -103,7 +103,7 @@ public JWKSource<SecurityContext> jwkSource() {
103103

104104
@Bean
105105
public ProviderSettings providerSettings() {
106-
return ProviderSettings.builder().issuer("http://auth-server:9000").build();
106+
return ProviderSettings.builder().issuer("http://localhost:9000").build();
107107
}
108108

109109
@Bean

samples/default-authorizationserver/src/main/java/sample/config/AuthorizationServerConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020-2021 the original author or authors.
2+
* Copyright 2020-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -107,7 +107,7 @@ public JWKSource<SecurityContext> jwkSource() {
107107

108108
@Bean
109109
public ProviderSettings providerSettings() {
110-
return ProviderSettings.builder().issuer("http://auth-server:9000").build();
110+
return ProviderSettings.builder().issuer("http://localhost:9000").build();
111111
}
112112

113113
@Bean

samples/messages-client/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ spring:
4141
client-name: messaging-client-client-credentials
4242
provider:
4343
spring:
44-
issuer-uri: http://auth-server:9000
44+
issuer-uri: http://localhost:9000
4545

4646
messages:
4747
base-uri: http://127.0.0.1:8090/messages

samples/messages-resource/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ spring:
1414
oauth2:
1515
resourceserver:
1616
jwt:
17-
issuer-uri: http://auth-server:9000
17+
issuer-uri: http://localhost:9000

0 commit comments

Comments
 (0)