-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Roy Scheeren <[email protected]>
- Loading branch information
1 parent
497e840
commit bf4cf9a
Showing
5 changed files
with
171 additions
and
28 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
serve: | ||
cookies: | ||
same_site_mode: Lax | ||
|
||
urls: | ||
self: | ||
issuer: http://localhost:4444 | ||
consent: http://localhost:5002/api/consent | ||
login: http://localhost:5002/login | ||
logout: http://localhost:5002/logout | ||
|
||
secrets: | ||
system: | ||
- e5Mcyq@EU@iT=1hH | ||
|
||
oidc: | ||
subject_identifiers: | ||
supported_types: | ||
- pairwise | ||
- public | ||
pairwise: | ||
salt: e5Mcyq@EU@iT=1hH | ||
log: | ||
level: debug |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
client=$(docker run --rm \ | ||
--network ory-hydra-net \ | ||
oryd/hydra:v2.2.0 \ | ||
create client --skip-tls-verify \ | ||
--name testclient \ | ||
--secret some-secret \ | ||
--grant-type authorization_code \ | ||
--response-type token,code,id_token \ | ||
--scope openid \ | ||
--redirect-uri http://localhost:9010/callback \ | ||
-e http://hydra:4445 \ | ||
--format json ) | ||
|
||
echo $client | ||
|
||
client_id=$(echo $client | jq -r '.client_id') | ||
|
||
docker run --rm \ | ||
--network ory-hydra-net \ | ||
-p 9010:9010 \ | ||
oryd/hydra:v2.2.0 \ | ||
perform authorization-code --skip-tls-verify \ | ||
--port 9010 \ | ||
--client-id $client_id \ | ||
--client-secret some-secret \ | ||
--redirect http://localhost:9010/callback \ | ||
--scope openid \ | ||
--auth-url http://localhost:4445/oauth2/auth \ | ||
--token-url http://hydra:4444/oauth2/token \ | ||
-e http://hydra:4444 |
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