File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ import {
56
56
verifyPasswordResetCode ,
57
57
getMultiFactorResolver ,
58
58
OAuthProvider ,
59
+ SAMLAuthProvider ,
59
60
GoogleAuthProvider ,
60
61
FacebookAuthProvider ,
61
62
TwitterAuthProvider ,
@@ -1188,6 +1189,7 @@ function onPopupRedirectAddCustomParam(_event) {
1188
1189
e . preventDefault ( ) ;
1189
1190
} ) ;
1190
1191
// Append constructed row to parameter list container.
1192
+ // TODO: These parameters need to be passed into OAuth calls with provider.setCustomParameters()
1191
1193
$ ( '#popup-redirect-custom-parameters' ) . append ( $node ) ;
1192
1194
}
1193
1195
@@ -1204,10 +1206,13 @@ function onPopupRedirectGenericProviderClick() {
1204
1206
* Performs the corresponding popup/redirect action for a SAML provider.
1205
1207
*/
1206
1208
function onPopupRedirectSamlProviderClick ( ) {
1207
- alertNotImplemented ( ) ;
1208
- // var providerId = $('#popup-redirect-saml-providerid').val();
1209
- // var provider = new SAMLAuthProvider(providerId);
1210
- // signInWithPopupRedirect(provider);
1209
+ if ( ! USE_AUTH_EMULATOR ) {
1210
+ alertNotImplemented ( ) ;
1211
+ return ;
1212
+ }
1213
+ var providerId = $ ( '#popup-redirect-saml-providerid' ) . val ( ) ;
1214
+ var provider = new SAMLAuthProvider ( providerId ) ;
1215
+ signInWithPopupRedirect ( provider ) ;
1211
1216
}
1212
1217
1213
1218
/**
You can’t perform that action at this time.
0 commit comments