Add options for IdP initiated flows to auth0-js (#37251)

This commit is based on the work of abandoned #37074 PR.
See problem answered here:
https://community.auth0.com/t/idp-initiated-sso-auth0-js-enableidpinitiatedlogin-flag/26946

/cc @Tanver-Hasan

Thanks!
This commit is contained in:
Piotr Błażejewicz (Peter Blazejewicz) 2019-08-01 23:59:23 +02:00 committed by Jesse Trinity
parent 05f5d8807e
commit 025e451664
2 changed files with 4 additions and 1 deletions

View File

@ -57,7 +57,8 @@ webAuth.parseHash(
PPoh-pITcZ8qbF5l5rMZwXiwk5efbESuqZ0IfMUcamB6jdgLwTxq-HpOT_x5q6-sO1PBHchpSo1WHeDYMlRrOFd9bh741sUuBuXdPQZ3Zb0i2sNOAC2RFB \
1E11mZn7uNvVPGdPTg-Y5xppz30GSXoOJLbeBszfrVDCmPhpHKGGMPL1N6HV-3EEF77L34YNAi2JQ-b70nFK_dnYmmv0cYTGUxtGTHkl64UEDLi3u7bV- \
kbGky3iOOCzXKzDDY6BBKpCRTc2KlbrkO2A2PuDn27WVv1QCNEFHvJN7HxiDDzXOsaUmjrQ3sfrHhzD7S9BcCRkekRfD9g95SKD5J0Fj8NA& \
token_type=Bearer&state=theState&refresh_token=kajshdgfkasdjhgfas&scope=foo"
token_type=Bearer&state=theState&refresh_token=kajshdgfkasdjhgfas&scope=foo",
__enableIdPInitiatedLogin: true,
},
(err, authResult) => {
if (err) {

View File

@ -748,6 +748,8 @@ export interface ParseHashOptions {
state?: string;
nonce?: string;
_idTokenVerification?: boolean;
/** indicates that you want to allow IdP-Initiated flows. See {@link https://auth0.com/docs/protocols/saml/idp-initiated-sso#lock-auth0-js} */
__enableIdPInitiatedLogin?: boolean;
}
export interface RenewAuthOptions {