self_service

package
v0.0.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 ConsentModel

type ConsentModel = consent.ConsentResponse

type ConsentPurposeModel

type ConsentPurposeModel = consent.ConsentPurposeResponse

type ConsentPurposeSummaryModel

type ConsentPurposeSummaryModel = consent.ConsentPurposeSummary

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 PushDeviceModel = push.DeviceDTO

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

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

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

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

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 SessionListResponseModel

type SessionListResponseModel = session.Sessions

type SessionModel

type SessionModel = session.Session

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL