WIP: Gitlab OAuth custom endpoint

This commit is contained in:
Matej Bačo committed 2022-06-10 10:03:30 +00:00
1 parent a8e4d7a71a
commit 9ebdbc58da
10 files changed
+154 -110

No files matched your search

+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];