add dex to hedgedoc
This commit is contained in:
parent
4b81bc18b1
commit
2c4bec6a26
2 changed files with 24 additions and 5 deletions
|
@ -75,6 +75,12 @@ in {
|
|||
redirectURIs = [ "https://grafana.0x76.dev/login/generic_oauth" ];
|
||||
secretEnv = "GRAFANA_CLIENT_SECRET";
|
||||
}
|
||||
{
|
||||
id = "hedgedoc";
|
||||
name = "Hedgedoc";
|
||||
redirectURIs = [ "https://md.0x76.dev/auth/oauth2/callback" ];
|
||||
secretEnv = "HEDGEDOC_CLIENT_SECRET";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
@ -66,7 +66,20 @@ in {
|
|||
accessKey = "$MINIO_ACCESS_KEY";
|
||||
secretKey = "$MINIO_SECRET_KEY";
|
||||
};
|
||||
email = true;
|
||||
email = false;
|
||||
oauth2 = let url = "https://dex.0x76.dev";
|
||||
in {
|
||||
providerName = "Dex";
|
||||
clientID = "hedgedoc";
|
||||
clientSecret = "$DEX_CLIENT_SECRET";
|
||||
scope = "openid email profile";
|
||||
authorizationURL = "${url}/auth";
|
||||
tokenURL = "${url}/token";
|
||||
userProfileURL = "${url}/userinfo";
|
||||
userProfileUsernameAttr = "preferred_username";
|
||||
userProfileDisplayNameAttr = "name";
|
||||
userProfileEmailAttr = "email";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue