FedCm Domain
This domain allows interacting with the FedCM dialog.
Methods
- FedCm.clickDialogButton
- FedCm.disable
- FedCm.dismissDialog
- FedCm.enable
- FedCm.openUrl
- FedCm.resetCooldown
- FedCm.selectAccount
Events
Types
Methods
FedCm.enable #
Parameters
disableRejectionDelay
Optional
boolean
Allows callers to disable the promise rejection delay that would normally happen, if this is unimportant to what's being tested. (step 4 of https://fedidcg.github.io/FedCM/#browser-api-rp-sign-in)
FedCm.resetCooldown #
Resets the cooldown time, if any, to allow the next FedCM call to show a dialog even if one was recently dismissed by the user.
Events
FedCm.dialogClosed #
Triggered when a dialog is closed, either by user action, JS abort, or a command below.
Parameters
dialogId
string
Types
FedCm.Account #
Corresponds to IdentityRequestAccount
Type: object
Properties
accountId
string
email
string
name
string
givenName
string
pictureUrl
string
idpConfigUrl
string
idpLoginUrl
string
loginState
termsOfServiceUrl
Optional
string
These two are only set if the loginState is signUp
privacyPolicyUrl
Optional
string
FedCm.AccountUrlType #
The URLs that each account has
Type: string
Allowed values: TermsOfService
, PrivacyPolicy
FedCm.DialogButton #
The buttons on the FedCM dialog.
Type: string
Allowed values: ConfirmIdpLoginContinue
, ErrorGotIt
, ErrorMoreDetails
FedCm.DialogType #
The types of FedCM dialogs.
Type: string
Allowed values: AccountChooser
, AutoReauthn
, ConfirmIdpLogin
, Error
FedCm.LoginState #
Whether this is a sign-up or sign-in action for this account, i.e. whether this account has ever been used to sign in to this RP before.
Type: string
Allowed values: SignIn
, SignUp