aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorJordan Bracco <href@random.sh>2021-09-03 22:47:55 +0200
committerJordan Bracco <href@random.sh>2021-09-03 22:47:55 +0200
commit023fcf384bc89b861f51c81a20a5aefea8afe772 (patch)
tree52c8aa95835acea5fbcb664d8e3f92c4e1e90316 /config
parentvarious small fixes (diff)
userinfo endpointHEADmain
Diffstat (limited to 'config')
-rw-r--r--config/sys.config11
1 files changed, 10 insertions, 1 deletions
diff --git a/config/sys.config b/config/sys.config
index 60a32cb..4c51865 100644
--- a/config/sys.config
+++ b/config/sys.config
@@ -1,6 +1,15 @@
[
{kernel, [{logger_level, debug}]},
- {styx, []},
+ {styx, [
+ {openid_userinfo_mapper, #{
+ <<"default">> => #{
+ <<"preferred_username">> => <<"username">>,
+ <<"email">> => <<"email">>,
+ <<"given_name">> => [<<"name">>, <<"first">>],
+ <<"family_name">> => [<<"name">>, <<"last">>]
+ }
+ }}
+ ]},
{ory, [
{kratos_url, <<"http://127.0.0.1:4433">>},
{kratos_admin_url, <<"http://127.0.0.1:4434">>},