Skip to content

Verify OIDC/SAML sign in against Auth Emulator #5776

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 2, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions packages/auth/demo/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import {
verifyPasswordResetCode,
getMultiFactorResolver,
OAuthProvider,
SAMLAuthProvider,
GoogleAuthProvider,
FacebookAuthProvider,
TwitterAuthProvider,
Expand Down Expand Up @@ -1188,6 +1189,7 @@ function onPopupRedirectAddCustomParam(_event) {
e.preventDefault();
});
// Append constructed row to parameter list container.
// TODO: These parameters need to be passed into OAuth calls with provider.setCustomParameters()
$('#popup-redirect-custom-parameters').append($node);
}

Expand All @@ -1204,10 +1206,13 @@ function onPopupRedirectGenericProviderClick() {
* Performs the corresponding popup/redirect action for a SAML provider.
*/
function onPopupRedirectSamlProviderClick() {
alertNotImplemented();
// var providerId = $('#popup-redirect-saml-providerid').val();
// var provider = new SAMLAuthProvider(providerId);
// signInWithPopupRedirect(provider);
if (!USE_AUTH_EMULATOR) {
alertNotImplemented();
return;
}
var providerId = $('#popup-redirect-saml-providerid').val();
var provider = new SAMLAuthProvider(providerId);
signInWithPopupRedirect(provider);
}

/**
Expand Down