FedCm Domain
This domain allows interacting with the FedCM dialog.
Methods
Events
Types
Methods
FedCm.confirmIdpSignin #
Only valid if the dialog type is ConfirmIdpSignin. Acts as if the user had clicked the continue button.
parameters
- dialogId
-
string
FedCm.disable #
FedCm.enable #
parameters
- disableRejectionDelay
-
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.dialogShown #
parameters
- dialogId
-
string
- dialogType
-
DialogType
- accounts
-
array[ Account ]
- title
-
string
These exist primarily so that the caller can verify the RP context was used appropriately.
- subtitle
-
string
Types
FedCm.Account #
Corresponds to IdentityRequestAccount
Type: object
properties
- accountId
-
string
-
string
- name
-
string
- givenName
-
string
- pictureUrl
-
string
- idpConfigUrl
-
string
- idpSigninUrl
-
string
- loginState
-
LoginState
- termsOfServiceUrl
-
string
These two are only set if the loginState is signUp
- privacyPolicyUrl
-
string
FedCm.DialogType #
Whether the dialog shown is an account chooser or an auto re-authentication dialog.
AccountChooser
, AutoReauthn
, ConfirmIdpSignin
Type: string
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.
SignIn
, SignUp
Type: string