-
Notifications
You must be signed in to change notification settings - Fork 309
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
CIBA implementation #1066
CIBA implementation #1066
Conversation
/** | ||
* The user ID. | ||
*/ | ||
userId: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tusharpandey13 What's the reason for using camel-case here when the rest of the options are in snake-case?
/** | ||
* Optional parameter for subject issuer context. | ||
*/ | ||
subjectIssuerContext?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tusharpandey13 What is the purpose of this option? I can't find it in the POST /bc-authorize
doc: https://auth0.com/docs/api/authentication#back-channel-login
/** | ||
* Custom expiry time in seconds for this request. | ||
*/ | ||
request_expiry?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tusharpandey13 Why is this parameter a string if it refers to a number of seconds?
Add support for Client Initiated Backchannel Login
Docs
Changes:
backchannel
property inauthenticationClient
, source located atsrc/auth/backchannel.ts
Test results:
PASSING
Steps for manual testing:
Enable CIBA feature flag on your tenant (currently in EA)
Once CIBA is enabled, navigate to Applications>Applications in the Auth0 Dashboard. Create
an application and then enable the Client Initiated Backchannel Authentication (CIBA) option
in the Grant Types tab
Enable Push Notifications using Auth0 Guardian in Multi-factor Auth in Security.
Enrol a user for MFA
Send a CIBA request as below and poll for the backchannel grant in regular intervals
Notes:
There are some restrictions on the types of clients that can use the CIBA grant type. You can
only use the CIBA grant type if:
token_endpoint_auth_method property must not be set to none.
default for all new clients.
Alternatively, you can use the Management API to add the
urn:openid:params:grant-type:ciba
grant type to the list of grant types on the clientobject: