FedCm#
This domain allows interacting with the FedCM dialog.
This CDP domain is experimental.
Types#
Generally, you do not need to instantiate CDP types yourself. Instead, the API creates objects for you as return values from commands, and then you can use those objects as arguments to other commands.
- class LoginState(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
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.
- SIGN_IN = 'SignIn'#
- SIGN_UP = 'SignUp'#
- class DialogType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
The types of FedCM dialogs.
- ACCOUNT_CHOOSER = 'AccountChooser'#
- AUTO_REAUTHN = 'AutoReauthn'#
- CONFIRM_IDP_LOGIN = 'ConfirmIdpLogin'#
- ERROR = 'Error'#
- class DialogButton(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
The buttons on the FedCM dialog.
- CONFIRM_IDP_LOGIN_CONTINUE = 'ConfirmIdpLoginContinue'#
- ERROR_GOT_IT = 'ErrorGotIt'#
- ERROR_MORE_DETAILS = 'ErrorMoreDetails'#
- class AccountUrlType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
The URLs that each account has
- TERMS_OF_SERVICE = 'TermsOfService'#
- PRIVACY_POLICY = 'PrivacyPolicy'#
- class Account(account_id, email, name, given_name, picture_url, idp_config_url, idp_login_url, login_state, terms_of_service_url=None, privacy_policy_url=None)[source]#
Corresponds to IdentityRequestAccount
-
login_state:
LoginState#
-
login_state:
Commands#
Each command is a generator function. The return
type Generator[x, y, z] indicates that the generator
yields arguments of type x, it must be resumed with
an argument of type y, and it returns type z. In
this library, types x and y are the same for all
commands, and z is the return type you should pay attention
to. For more information, see
Getting Started: Commands.
- enable(disable_rejection_delay=None)[source]#
- Parameters:
disable_rejection_delay (
Optional[bool]) – (Optional) 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)- Return type:
Events#
Generally, you do not need to instantiate CDP events yourself. Instead, the API creates events for you and then you use the event’s attributes.