package fedcm
Import Path
github.com/chromedp/cdproto/fedcm (on go.dev)
Dependency Relation
imports 7 packages, and imported by one package
Involved Source Files
easyjson.go
events.go
Package fedcm provides the Chrome DevTools Protocol
commands, types, and events for the FedCm domain.
This domain allows interacting with the FedCM dialog.
Generated by the cdproto-gen command.
types.go
Package-Level Type Names (total 10)
Account corresponds to IdentityRequestAccount.
See: https://chromedevtools.github.io/devtools-protocol/tot/FedCm#type-Account
AccountID string
Email string
GivenName string
IdpConfigURL string
IdpLoginURL string
LoginState LoginState
Name string
PictureURL string
PrivacyPolicyURL string
// These two are only set if the loginState is signUp
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
Account : github.com/goccy/go-json.Marshaler
*Account : github.com/goccy/go-json.Unmarshaler
Account : github.com/mailru/easyjson.Marshaler
*Account : github.com/mailru/easyjson.MarshalerUnmarshaler
*Account : github.com/mailru/easyjson.Unmarshaler
Account : encoding/json.Marshaler
*Account : encoding/json.Unmarshaler
ConfirmIdpLoginParams only valid if the dialog type is ConfirmIdpLogin.
Acts as if the user had clicked the continue button.
DialogID string
Do executes FedCm.confirmIdpLogin against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
*ConfirmIdpLoginParams : github.com/chromedp/chromedp.Action
*ConfirmIdpLoginParams : github.com/chromedp/chromedp.CallAction
*ConfirmIdpLoginParams : github.com/chromedp/chromedp.EmulateAction
*ConfirmIdpLoginParams : github.com/chromedp/chromedp.EvaluateAction
*ConfirmIdpLoginParams : github.com/chromedp/chromedp.KeyAction
*ConfirmIdpLoginParams : github.com/chromedp/chromedp.MouseAction
*ConfirmIdpLoginParams : github.com/chromedp/chromedp.NavigateAction
*ConfirmIdpLoginParams : github.com/chromedp/chromedp.PollAction
*ConfirmIdpLoginParams : github.com/chromedp/chromedp.QueryAction
ConfirmIdpLoginParams : github.com/goccy/go-json.Marshaler
*ConfirmIdpLoginParams : github.com/goccy/go-json.Unmarshaler
ConfirmIdpLoginParams : github.com/mailru/easyjson.Marshaler
*ConfirmIdpLoginParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*ConfirmIdpLoginParams : github.com/mailru/easyjson.Unmarshaler
ConfirmIdpLoginParams : encoding/json.Marshaler
*ConfirmIdpLoginParams : encoding/json.Unmarshaler
func ConfirmIdpLogin(dialogID string) *ConfirmIdpLoginParams
DialogType whether the dialog shown is an account chooser or an auto
re-authentication dialog.
See: https://chromedevtools.github.io/devtools-protocol/tot/FedCm#type-DialogType
MarshalEasyJSON satisfies easyjson.Marshaler.
MarshalJSON satisfies json.Marshaler.
String returns the DialogType as string value.
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
UnmarshalJSON satisfies json.Unmarshaler.
DialogType : github.com/goccy/go-json.Marshaler
*DialogType : github.com/goccy/go-json.Unmarshaler
DialogType : github.com/mailru/easyjson.Marshaler
*DialogType : github.com/mailru/easyjson.MarshalerUnmarshaler
*DialogType : github.com/mailru/easyjson.Unmarshaler
DialogType : encoding/json.Marshaler
*DialogType : encoding/json.Unmarshaler
DialogType : expvar.Var
DialogType : fmt.Stringer
const DialogTypeAccountChooser
const DialogTypeAutoReauthn
const DialogTypeConfirmIdpLogin
DisableParams [no description].
Do executes FedCm.disable against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
*DisableParams : github.com/chromedp/chromedp.Action
*DisableParams : github.com/chromedp/chromedp.CallAction
*DisableParams : github.com/chromedp/chromedp.EmulateAction
*DisableParams : github.com/chromedp/chromedp.EvaluateAction
*DisableParams : github.com/chromedp/chromedp.KeyAction
*DisableParams : github.com/chromedp/chromedp.MouseAction
*DisableParams : github.com/chromedp/chromedp.NavigateAction
*DisableParams : github.com/chromedp/chromedp.PollAction
*DisableParams : github.com/chromedp/chromedp.QueryAction
DisableParams : github.com/goccy/go-json.Marshaler
*DisableParams : github.com/goccy/go-json.Unmarshaler
DisableParams : github.com/mailru/easyjson.Marshaler
*DisableParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*DisableParams : github.com/mailru/easyjson.Unmarshaler
DisableParams : encoding/json.Marshaler
*DisableParams : encoding/json.Unmarshaler
func Disable() *DisableParams
DismissDialogParams [no description].
DialogID string
TriggerCooldown bool
Do executes FedCm.dismissDialog against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
WithTriggerCooldown [no description].
*DismissDialogParams : github.com/chromedp/chromedp.Action
*DismissDialogParams : github.com/chromedp/chromedp.CallAction
*DismissDialogParams : github.com/chromedp/chromedp.EmulateAction
*DismissDialogParams : github.com/chromedp/chromedp.EvaluateAction
*DismissDialogParams : github.com/chromedp/chromedp.KeyAction
*DismissDialogParams : github.com/chromedp/chromedp.MouseAction
*DismissDialogParams : github.com/chromedp/chromedp.NavigateAction
*DismissDialogParams : github.com/chromedp/chromedp.PollAction
*DismissDialogParams : github.com/chromedp/chromedp.QueryAction
DismissDialogParams : github.com/goccy/go-json.Marshaler
*DismissDialogParams : github.com/goccy/go-json.Unmarshaler
DismissDialogParams : github.com/mailru/easyjson.Marshaler
*DismissDialogParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*DismissDialogParams : github.com/mailru/easyjson.Unmarshaler
DismissDialogParams : encoding/json.Marshaler
*DismissDialogParams : encoding/json.Unmarshaler
func DismissDialog(dialogID string) *DismissDialogParams
func DismissDialogParams.WithTriggerCooldown(triggerCooldown bool) *DismissDialogParams
EnableParams [no description].
// 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)
Do executes FedCm.enable against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
WithDisableRejectionDelay 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).
*EnableParams : github.com/chromedp/chromedp.Action
*EnableParams : github.com/chromedp/chromedp.CallAction
*EnableParams : github.com/chromedp/chromedp.EmulateAction
*EnableParams : github.com/chromedp/chromedp.EvaluateAction
*EnableParams : github.com/chromedp/chromedp.KeyAction
*EnableParams : github.com/chromedp/chromedp.MouseAction
*EnableParams : github.com/chromedp/chromedp.NavigateAction
*EnableParams : github.com/chromedp/chromedp.PollAction
*EnableParams : github.com/chromedp/chromedp.QueryAction
EnableParams : github.com/goccy/go-json.Marshaler
*EnableParams : github.com/goccy/go-json.Unmarshaler
EnableParams : github.com/mailru/easyjson.Marshaler
*EnableParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*EnableParams : github.com/mailru/easyjson.Unmarshaler
EnableParams : encoding/json.Marshaler
*EnableParams : encoding/json.Unmarshaler
func Enable() *EnableParams
func EnableParams.WithDisableRejectionDelay(disableRejectionDelay bool) *EnableParams
EventDialogShown [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/FedCm#event-dialogShown
Accounts []*Account
DialogID string
DialogType DialogType
Subtitle string
// These exist primarily so that the caller can verify the RP context was used appropriately.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
EventDialogShown : github.com/goccy/go-json.Marshaler
*EventDialogShown : github.com/goccy/go-json.Unmarshaler
EventDialogShown : github.com/mailru/easyjson.Marshaler
*EventDialogShown : github.com/mailru/easyjson.MarshalerUnmarshaler
*EventDialogShown : github.com/mailru/easyjson.Unmarshaler
EventDialogShown : encoding/json.Marshaler
*EventDialogShown : encoding/json.Unmarshaler
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.
See: https://chromedevtools.github.io/devtools-protocol/tot/FedCm#type-LoginState
MarshalEasyJSON satisfies easyjson.Marshaler.
MarshalJSON satisfies json.Marshaler.
String returns the LoginState as string value.
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
UnmarshalJSON satisfies json.Unmarshaler.
LoginState : github.com/goccy/go-json.Marshaler
*LoginState : github.com/goccy/go-json.Unmarshaler
LoginState : github.com/mailru/easyjson.Marshaler
*LoginState : github.com/mailru/easyjson.MarshalerUnmarshaler
*LoginState : github.com/mailru/easyjson.Unmarshaler
LoginState : encoding/json.Marshaler
*LoginState : encoding/json.Unmarshaler
LoginState : expvar.Var
LoginState : fmt.Stringer
const LoginStateSignIn
const LoginStateSignUp
ResetCooldownParams 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.
Do executes FedCm.resetCooldown against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
*ResetCooldownParams : github.com/chromedp/chromedp.Action
*ResetCooldownParams : github.com/chromedp/chromedp.CallAction
*ResetCooldownParams : github.com/chromedp/chromedp.EmulateAction
*ResetCooldownParams : github.com/chromedp/chromedp.EvaluateAction
*ResetCooldownParams : github.com/chromedp/chromedp.KeyAction
*ResetCooldownParams : github.com/chromedp/chromedp.MouseAction
*ResetCooldownParams : github.com/chromedp/chromedp.NavigateAction
*ResetCooldownParams : github.com/chromedp/chromedp.PollAction
*ResetCooldownParams : github.com/chromedp/chromedp.QueryAction
ResetCooldownParams : github.com/goccy/go-json.Marshaler
*ResetCooldownParams : github.com/goccy/go-json.Unmarshaler
ResetCooldownParams : github.com/mailru/easyjson.Marshaler
*ResetCooldownParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*ResetCooldownParams : github.com/mailru/easyjson.Unmarshaler
ResetCooldownParams : encoding/json.Marshaler
*ResetCooldownParams : encoding/json.Unmarshaler
func ResetCooldown() *ResetCooldownParams
SelectAccountParams [no description].
AccountIndex int64
DialogID string
Do executes FedCm.selectAccount against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
*SelectAccountParams : github.com/chromedp/chromedp.Action
*SelectAccountParams : github.com/chromedp/chromedp.CallAction
*SelectAccountParams : github.com/chromedp/chromedp.EmulateAction
*SelectAccountParams : github.com/chromedp/chromedp.EvaluateAction
*SelectAccountParams : github.com/chromedp/chromedp.KeyAction
*SelectAccountParams : github.com/chromedp/chromedp.MouseAction
*SelectAccountParams : github.com/chromedp/chromedp.NavigateAction
*SelectAccountParams : github.com/chromedp/chromedp.PollAction
*SelectAccountParams : github.com/chromedp/chromedp.QueryAction
SelectAccountParams : github.com/goccy/go-json.Marshaler
*SelectAccountParams : github.com/goccy/go-json.Unmarshaler
SelectAccountParams : github.com/mailru/easyjson.Marshaler
*SelectAccountParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*SelectAccountParams : github.com/mailru/easyjson.Unmarshaler
SelectAccountParams : encoding/json.Marshaler
*SelectAccountParams : encoding/json.Unmarshaler
func SelectAccount(dialogID string, accountIndex int64) *SelectAccountParams
Package-Level Functions (total 6)
ConfirmIdpLogin only valid if the dialog type is ConfirmIdpLogin. Acts as
if the user had clicked the continue button.
See: https://chromedevtools.github.io/devtools-protocol/tot/FedCm#method-confirmIdpLogin
parameters:
dialogID
Disable [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/FedCm#method-disable
DismissDialog [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/FedCm#method-dismissDialog
parameters:
dialogID
Enable [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/FedCm#method-enable
parameters:
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.
See: https://chromedevtools.github.io/devtools-protocol/tot/FedCm#method-resetCooldown
SelectAccount [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/FedCm#method-selectAccount
parameters:
dialogID
accountIndex
Package-Level Constants (total 11)
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
DialogType values.
DialogType values.
DialogType values.
LoginState values.
LoginState values.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |