From ab66713941948ab6176283c9287ba4bea7d18b1f Mon Sep 17 00:00:00 2001 From: Mauro Mugnaini Date: Fri, 23 Apr 2021 18:51:53 +0200 Subject: [PATCH] Config for oauth2 strategy --- local-site/oauth2auth.cfg | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 local-site/oauth2auth.cfg diff --git a/local-site/oauth2auth.cfg b/local-site/oauth2auth.cfg new file mode 100644 index 0000000..6d522ab --- /dev/null +++ b/local-site/oauth2auth.cfg @@ -0,0 +1,24 @@ +{ + "strategy": "oauth2", + "strategySettings": { + "authorizationURL": "https://accounts.dev.d4science.org/auth/realms/d4science/protocol/openid-connect/auth", + "tokenURL": "https://accounts.dev.d4science.org/auth/realms/d4science/protocol/openid-connect/token", + "clientID": "conductor-ui", + "clientSecret": "b10d40b3-1f3c-47ce-baf4-d58bf6386eb3", + "callbackURL": "http://localhost/login/callback", + "logoutURL": "https://accounts.dev.d4science.org/auth/realms/d4science/protocol/openid-connect/logout", + "logoutCallbackURL": "http://localhost/logout/callback", + "roles": [ "admin", "viewer" ] + }, + "cookieSecret": "b10d40b3-1f3c-47ce-baf4-d58bf6386eb3", + "audit": true, + "acl": [ + "POST /(.*) admin", + "PUT /(.*) admin", + "DELETE /(.*) admin", + "GET /api/(.*) *", + "GET /(.*) viewer,admin" + ] +} + +