WIP: Gitlab OAuth custom endpoint

This commit is contained in:
Matej Bačo
2022-06-10 10:03:30 +00:00
parent a8e4d7a71a
commit 9ebdbc58da
10 changed files with 154 additions and 110 deletions
+5 -1
View File
@@ -25,9 +25,13 @@
"Auth0": {
"clientSecret": "oauth2Auth0ClientSecret",
"auth0Domain": "oauth2Auth0Domain"
}
},
"GitLab": {
"endpoint": "oauth2GitLabEndpoint"
},
}
let provider = element.getAttribute("data-forms-oauth-custom");
alert(provider);
if (!provider || !providers.hasOwnProperty(provider)) { console.error("Provider for custom form not set or unknown") }
let config = providers[provider];