mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
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:
parent
05f5d8807e
commit
025e451664
@ -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) {
|
||||
|
||||
2
types/auth0-js/index.d.ts
vendored
2
types/auth0-js/index.d.ts
vendored
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user