-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommandClients.sh
More file actions
executable file
·34 lines (30 loc) · 1.43 KB
/
commandClients.sh
File metadata and controls
executable file
·34 lines (30 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# aggiungere client Openid
docker-compose exec hydra hydra clients create \
--endpoint http://127.0.0.1:4445/ \
--name MyAppOpenId \
--id myclientOpenId \
--secret mysecretOpenId \
--grant-types authorization_code,refresh_token \
--callbacks http://oidcclient.test/callbacksopenid,http://oidcclient.test,http://identityprovider.test/authentication/logout \
--response-types code,id_token \
--token-endpoint-auth-method client_secret_post \
--post-logout-callbacks http://oidcclient.test \
--scope openid,email,profile
docker-compose exec hydra hydra clients create \
--endpoint http://127.0.0.1:4445/ \
--name MyAppOauth \
--id myclientOauth \
--secret mysecretOauth \
--grant-types authorization_code,refresh_token \
--response-types code,id_token \
--callbacks http://oaclient.test/callbacksOauth,http://oaclient.test \
--token-endpoint-auth-method client_secret_post \
--post-logout-callbacks http://oaclient.test \
--scope offline,articles.write,articles.read,username.read
docker-compose exec hydra hydra clients update myclientOpenId \
--frontchannel-logout-callback http://localhost:2222/ \
--frontchannel-logout-session-required \
--endpoint http://127.0.0.1:4445/
docker-compose exec hydra hydra clients get myclientOpenId --endpoint http://127.0.0.1:4445/
docker-compose exec hydra hydra clients delete myclientOpenId --endpoint http://127.0.0.1:4445/
docker-compose exec hydra hydra clients delete myclientOauth --endpoint http://127.0.0.1:4445/