Documentation
¶
Index ¶
- type ApplicationListParamsModel
- type ApplicationListResponseModel
- type ApplicationModel
- type AssociatedUserModel
- type AuthorizedAppModel
- type ConsentListParamsModel
- type ConsentModel
- type ConsentPurposeModel
- type ConsentPurposeSummaryModel
- type ConsentStateModel
- type ConsentSummaryModel
- type EnabledAuthenticatorsResponseModel
- type FederatedAssociationModel
- type PasskeyModel
- type PushDeviceModel
- type RemainingBackupCodesResponseModel
- type SelfServiceClient
- func (c *SelfServiceClient) DeleteAllAssociations(ctx context.Context) error
- func (c *SelfServiceClient) DeleteAllFederatedAssociations(ctx context.Context) error
- func (c *SelfServiceClient) DeleteAssociation(ctx context.Context, associatedUserID string) error
- func (c *SelfServiceClient) DeleteBackupCodes(ctx context.Context) error
- func (c *SelfServiceClient) DeleteFederatedAssociation(ctx context.Context, id string) error
- func (c *SelfServiceClient) DeletePasskey(ctx context.Context, credentialID string) error
- func (c *SelfServiceClient) DeletePushDevice(ctx context.Context, deviceID string) error
- func (c *SelfServiceClient) DeleteTOTP(ctx context.Context) error
- func (c *SelfServiceClient) GetApplication(ctx context.Context, applicationID string) (*ApplicationModel, error)
- func (c *SelfServiceClient) GetAuthorizedApp(ctx context.Context, applicationID string) (*AuthorizedAppModel, error)
- func (c *SelfServiceClient) GetConsent(ctx context.Context, consentID string) (*ConsentModel, error)
- func (c *SelfServiceClient) GetEnabledMFAAuthenticators(ctx context.Context) (*EnabledAuthenticatorsResponseModel, error)
- func (c *SelfServiceClient) GetRemainingBackupCodes(ctx context.Context) (*RemainingBackupCodesResponseModel, error)
- func (c *SelfServiceClient) ListApplications(ctx context.Context, params *ApplicationListParamsModel) (*ApplicationListResponseModel, error)
- func (c *SelfServiceClient) ListAssociations(ctx context.Context) ([]AssociatedUserModel, error)
- func (c *SelfServiceClient) ListAuthorizedApps(ctx context.Context) ([]AuthorizedAppModel, error)
- func (c *SelfServiceClient) ListConsents(ctx context.Context, params *ConsentListParamsModel) ([]ConsentSummaryModel, error)
- func (c *SelfServiceClient) ListFederatedAssociations(ctx context.Context) ([]FederatedAssociationModel, error)
- func (c *SelfServiceClient) ListPasskeys(ctx context.Context) ([]PasskeyModel, error)
- func (c *SelfServiceClient) ListPushDevices(ctx context.Context) ([]PushDeviceModel, error)
- func (c *SelfServiceClient) ListSessions(ctx context.Context) (*SessionListResponseModel, error)
- func (c *SelfServiceClient) RenamePasskey(ctx context.Context, credentialID, displayName string) error
- func (c *SelfServiceClient) RevokeAuthorizedApp(ctx context.Context, applicationID string) error
- func (c *SelfServiceClient) RevokeConsent(ctx context.Context, consentID string) error
- func (c *SelfServiceClient) TerminateAllSessions(ctx context.Context) error
- func (c *SelfServiceClient) TerminateSession(ctx context.Context, sessionID string) error
- type SessionListResponseModel
- type SessionModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationListParamsModel ¶
type ApplicationListParamsModel = application.GetApplicationsParams
type ApplicationListResponseModel ¶
type ApplicationListResponseModel = application.ApplicationListResponse
type ApplicationModel ¶
type ApplicationModel = application.ApplicationResponse
type AssociatedUserModel ¶
type AssociatedUserModel = association.User
type AuthorizedAppModel ¶
type AuthorizedAppModel = authorized_apps.AuthorizedAppDTO
type ConsentListParamsModel ¶
type ConsentListParamsModel = consent.ListConsentsOfLoggedInUserParams
type ConsentModel ¶
type ConsentModel = consent.ConsentResponse
type ConsentPurposeModel ¶
type ConsentPurposeModel = consent.ConsentPurposeResponse
type ConsentPurposeSummaryModel ¶
type ConsentPurposeSummaryModel = consent.ConsentPurposeSummary
type ConsentStateModel ¶
type ConsentStateModel = consent.ListConsentsOfLoggedInUserParamsState
type ConsentSummaryModel ¶
type ConsentSummaryModel = consent.ConsentSummary
type EnabledAuthenticatorsResponseModel ¶
type EnabledAuthenticatorsResponseModel = mfa.EnabledAuthenticators
type FederatedAssociationModel ¶
type FederatedAssociationModel = association.FederatedAssociation
type PasskeyModel ¶
type PasskeyModel = map[string]interface{}
type PushDeviceModel ¶
type RemainingBackupCodesResponseModel ¶
type RemainingBackupCodesResponseModel = backup_code.RemainingBackupCodeResponse
type SelfServiceClient ¶
type SelfServiceClient struct {
// contains filtered or unexported fields
}
SelfServiceClient manages the account of the user the access token belongs to
func New ¶
func New(cfg *config.ClientConfig) (*SelfServiceClient, error)
New creates a new self-service client
func (*SelfServiceClient) DeleteAllAssociations ¶
func (c *SelfServiceClient) DeleteAllAssociations(ctx context.Context) error
DeleteAllAssociations unlinks all local accounts
func (*SelfServiceClient) DeleteAllFederatedAssociations ¶
func (c *SelfServiceClient) DeleteAllFederatedAssociations(ctx context.Context) error
DeleteAllFederatedAssociations unlinks all federated accounts
func (*SelfServiceClient) DeleteAssociation ¶
func (c *SelfServiceClient) DeleteAssociation(ctx context.Context, associatedUserID string) error
DeleteAssociation unlinks a local account
func (*SelfServiceClient) DeleteBackupCodes ¶
func (c *SelfServiceClient) DeleteBackupCodes(ctx context.Context) error
DeleteBackupCodes deletes the user's backup codes
func (*SelfServiceClient) DeleteFederatedAssociation ¶
func (c *SelfServiceClient) DeleteFederatedAssociation(ctx context.Context, id string) error
DeleteFederatedAssociation unlinks a federated account
func (*SelfServiceClient) DeletePasskey ¶
func (c *SelfServiceClient) DeletePasskey(ctx context.Context, credentialID string) error
DeletePasskey removes a passkey
func (*SelfServiceClient) DeletePushDevice ¶
func (c *SelfServiceClient) DeletePushDevice(ctx context.Context, deviceID string) error
DeletePushDevice removes a push device
func (*SelfServiceClient) DeleteTOTP ¶
func (c *SelfServiceClient) DeleteTOTP(ctx context.Context) error
DeleteTOTP removes the user's TOTP authenticator
func (*SelfServiceClient) GetApplication ¶
func (c *SelfServiceClient) GetApplication(ctx context.Context, applicationID string) (*ApplicationModel, error)
GetApplication retrieves an application the user can access
func (*SelfServiceClient) GetAuthorizedApp ¶
func (c *SelfServiceClient) GetAuthorizedApp(ctx context.Context, applicationID string) (*AuthorizedAppModel, error)
GetAuthorizedApp retrieves an authorized OAuth application
func (*SelfServiceClient) GetConsent ¶
func (c *SelfServiceClient) GetConsent(ctx context.Context, consentID string) (*ConsentModel, error)
GetConsent retrieves a consent of the user
func (*SelfServiceClient) GetEnabledMFAAuthenticators ¶
func (c *SelfServiceClient) GetEnabledMFAAuthenticators(ctx context.Context) (*EnabledAuthenticatorsResponseModel, error)
GetEnabledMFAAuthenticators retrieves the user's enabled MFA authenticators
func (*SelfServiceClient) GetRemainingBackupCodes ¶
func (c *SelfServiceClient) GetRemainingBackupCodes(ctx context.Context) (*RemainingBackupCodesResponseModel, error)
GetRemainingBackupCodes retrieves the count of the user's remaining backup codes
func (*SelfServiceClient) ListApplications ¶
func (c *SelfServiceClient) ListApplications(ctx context.Context, params *ApplicationListParamsModel) (*ApplicationListResponseModel, error)
ListApplications retrieves the applications the user can access
func (*SelfServiceClient) ListAssociations ¶
func (c *SelfServiceClient) ListAssociations(ctx context.Context) ([]AssociatedUserModel, error)
ListAssociations retrieves the user's linked local accounts
func (*SelfServiceClient) ListAuthorizedApps ¶
func (c *SelfServiceClient) ListAuthorizedApps(ctx context.Context) ([]AuthorizedAppModel, error)
ListAuthorizedApps retrieves the user's authorized OAuth applications
func (*SelfServiceClient) ListConsents ¶
func (c *SelfServiceClient) ListConsents(ctx context.Context, params *ConsentListParamsModel) ([]ConsentSummaryModel, error)
ListConsents retrieves the user's consents
func (*SelfServiceClient) ListFederatedAssociations ¶
func (c *SelfServiceClient) ListFederatedAssociations(ctx context.Context) ([]FederatedAssociationModel, error)
ListFederatedAssociations retrieves the user's linked federated accounts
func (*SelfServiceClient) ListPasskeys ¶
func (c *SelfServiceClient) ListPasskeys(ctx context.Context) ([]PasskeyModel, error)
ListPasskeys retrieves the user's passkeys
func (*SelfServiceClient) ListPushDevices ¶
func (c *SelfServiceClient) ListPushDevices(ctx context.Context) ([]PushDeviceModel, error)
ListPushDevices retrieves the user's push devices
func (*SelfServiceClient) ListSessions ¶
func (c *SelfServiceClient) ListSessions(ctx context.Context) (*SessionListResponseModel, error)
ListSessions retrieves the user's active sessions
func (*SelfServiceClient) RenamePasskey ¶
func (c *SelfServiceClient) RenamePasskey(ctx context.Context, credentialID, displayName string) error
RenamePasskey changes the display name of a passkey
func (*SelfServiceClient) RevokeAuthorizedApp ¶
func (c *SelfServiceClient) RevokeAuthorizedApp(ctx context.Context, applicationID string) error
RevokeAuthorizedApp revokes an authorized OAuth application
func (*SelfServiceClient) RevokeConsent ¶
func (c *SelfServiceClient) RevokeConsent(ctx context.Context, consentID string) error
RevokeConsent revokes a consent of the user
func (*SelfServiceClient) TerminateAllSessions ¶
func (c *SelfServiceClient) TerminateAllSessions(ctx context.Context) error
TerminateAllSessions terminates all sessions of the user
func (*SelfServiceClient) TerminateSession ¶
func (c *SelfServiceClient) TerminateSession(ctx context.Context, sessionID string) error
TerminateSession terminates a session of the user
type SessionModel ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
application
Package application provides primitives to interact with the openapi HTTP API.
|
Package application provides primitives to interact with the openapi HTTP API. |
|
association
Package association provides primitives to interact with the openapi HTTP API.
|
Package association provides primitives to interact with the openapi HTTP API. |
|
authorized_apps
Package authorized_apps provides primitives to interact with the openapi HTTP API.
|
Package authorized_apps provides primitives to interact with the openapi HTTP API. |
|
backup_code
Package backup_code provides primitives to interact with the openapi HTTP API.
|
Package backup_code provides primitives to interact with the openapi HTTP API. |
|
consent
Package consent provides primitives to interact with the openapi HTTP API.
|
Package consent provides primitives to interact with the openapi HTTP API. |
|
fido
Package fido provides primitives to interact with the openapi HTTP API.
|
Package fido provides primitives to interact with the openapi HTTP API. |
|
mfa
Package mfa provides primitives to interact with the openapi HTTP API.
|
Package mfa provides primitives to interact with the openapi HTTP API. |
|
push
Package push provides primitives to interact with the openapi HTTP API.
|
Package push provides primitives to interact with the openapi HTTP API. |
|
session
Package session provides primitives to interact with the openapi HTTP API.
|
Package session provides primitives to interact with the openapi HTTP API. |
|
totp
Package totp provides primitives to interact with the openapi HTTP API.
|
Package totp provides primitives to interact with the openapi HTTP API. |