From 4ab697c6c20495db18282b8b68f044d43ba59785 Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Fri, 16 Feb 2024 14:47:15 -0800 Subject: [PATCH] (Docs) generic sso provider --- docs/my-website/docs/proxy/ui.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/my-website/docs/proxy/ui.md b/docs/my-website/docs/proxy/ui.md index c98c85f2d5..13f975cd19 100644 --- a/docs/my-website/docs/proxy/ui.md +++ b/docs/my-website/docs/proxy/ui.md @@ -126,6 +126,15 @@ GENERIC_TOKEN_ENDPOINT = "http://localhost:9090/token" GENERIC_USERINFO_ENDPOINT = "http://localhost:9090/me" ``` +**Optional .env variables** +The following can be used to customize attribute names when interacting with the generic OAuth provider. We will read these attributes from the SSO Provider result + +```shell +GENERIC_USER_ID_ATTRIBUTE = "given_name" +GENERIC_USER_EMAIL_ATTRIBUTE = "family_name" +GENERIC_USER_ROLE_ATTRIBUTE = "given_role" +``` + - Set Redirect URI, if your provider requires it - Set a redirect url = `/sso/callback` ```shell