-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ff088f
commit f749a7a
Showing
5 changed files
with
34 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,20 +26,21 @@ Build and run it with: | |
```bash | ||
mvn package | ||
|
||
java -jar target/fake_oidc.jar | ||
target/fake_oidc_server.jar | ||
``` | ||
|
||
By default the application runs at TCP port 8090, uses a self-signed certificate for localhost, and the only | ||
user has username "perun" and password "test". This can be changed by using command line options: | ||
By default the application runs at TCP port 8090, uses a self-signed certificate for localhost, and there are | ||
two users with lognames "perun" and "makub", and passwords "test". This can be changed by using command line options: | ||
|
||
```bash | ||
java -jar target/fake_oidc.jar \ | ||
--server.port=8100 \ | ||
--server.ssl.key-store=mykeystore.p12 \ | ||
--oidc.user.logname=john \ | ||
--oidc.user.password=bflmpsvz \ | ||
[email protected] \ | ||
--oidc.user.name="John Doe" | ||
target/fake_oidc_server.jar \ | ||
--server.port=8100 \ | ||
--server.ssl.key-store=mykeystore.p12 \ | ||
--oidc.users.john.password=bflmpsvz \ | ||
[email protected] \ | ||
[email protected] \ | ||
--oidc.users.john.given_name="John" \ | ||
--oidc.users.john.family_name="Doe" | ||
``` | ||
See all the available options in the file src/main/resources/application.yml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# every value can be changed from command line by preceding the option with -- | ||
# see https://docs.spring.io/spring-boot/docs/current/reference/html/spring-boot-features.html#boot-features-external-config-command-line-args | ||
# example: | ||
# target/fake_oidc_server.jar --server.port=8100 -server.ssl.key-store=mykeystore.p12 --oidc.user.password=bflmpsvz | ||
# target/fake_oidc_server.jar --server.port=8100 -server.ssl.key-store=mykeystore.p12 --oidc.users.makub.password=bflmpsvz | ||
|
||
server: | ||
port: 8090 | ||
|
@@ -14,19 +14,15 @@ server: | |
oidc: | ||
tokenExpirationSeconds: 36000 | ||
users: | ||
- logname: "perun" | ||
perun: | ||
password: "test" | ||
sub: "perun1" | ||
name: "Master Perun" | ||
given_name: "Master" | ||
family_name: "Perun" | ||
preferred_username: "perun" | ||
email: "[email protected]" | ||
- logname: "makub" | ||
makub: | ||
password: "test" | ||
sub: "makub1" | ||
name: "Martin Kuba" | ||
given_name: "Kuba" | ||
family_name: "Martin" | ||
preferred_username: "makub" | ||
given_name: "Martin" | ||
family_name: "Kuba" | ||
email: "[email protected]" |