Replaced auth-server with localhost

This commit is contained in:
Steve Riesenberg
2022-03-17 14:46:48 -05:00
parent 32414451f5
commit c3402b0b12
5 changed files with 6 additions and 7 deletions

View File

@@ -7,7 +7,6 @@ The username is `user1` and the password is `password`.
== Run the Sample
* Run Authorization Server -> `./gradlew -b samples/default-authorizationserver/samples-default-authorizationserver.gradle bootRun`
** *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`
* Run Resource Server -> `./gradlew -b samples/messages-resource/samples-messages-resource.gradle bootRun`
* Run Client -> `./gradlew -b samples/messages-client/samples-messages-client.gradle bootRun`
* Go to `http://127.0.0.1:8080`

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2020-2021 the original author or authors.
* Copyright 2020-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -103,7 +103,7 @@ public class AuthorizationServerConfig {
@Bean
public ProviderSettings providerSettings() {
return ProviderSettings.builder().issuer("http://auth-server:9000").build();
return ProviderSettings.builder().issuer("http://localhost:9000").build();
}
@Bean

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2020-2021 the original author or authors.
* Copyright 2020-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -107,7 +107,7 @@ public class AuthorizationServerConfig {
@Bean
public ProviderSettings providerSettings() {
return ProviderSettings.builder().issuer("http://auth-server:9000").build();
return ProviderSettings.builder().issuer("http://localhost:9000").build();
}
@Bean

View File

@@ -41,7 +41,7 @@ spring:
client-name: messaging-client-client-credentials
provider:
spring:
issuer-uri: http://auth-server:9000
issuer-uri: http://localhost:9000
messages:
base-uri: http://127.0.0.1:8090/messages

View File

@@ -14,4 +14,4 @@ spring:
oauth2:
resourceserver:
jwt:
issuer-uri: http://auth-server:9000
issuer-uri: http://localhost:9000