Documentation ¶
Index ¶
- type AuthenticationOptions
- type AuthenticationResponse
- type AuthorizationUrlOptions
- type Connection
- type CreateDomainResponse
- type CreateOrganizationOptions
- type CreateOrganizationResponse
- type Directory
- type Domain
- type Feature
- type GetConnectionResponse
- type GetDirectoryResponse
- type GetDomainResponse
- type GetOrganizationResponse
- type GrantType
- type IdTokenClaims
- type Identity
- type IdpInitiatedLoginClaims
- type Link
- type ListConnectionsResponse
- type ListDirectoriesResponse
- type ListDirectoryGroupsOptions
- type ListDirectoryGroupsResponse
- type ListDirectoryUsersOptions
- type ListDirectoryUsersResponse
- type ListDomainResponse
- type ListOrganizationOptions
- type ListOrganizationsResponse
- type Organization
- type OrganizationSettings
- type Scalekit
- type ToggleConnectionResponse
- type ToggleDirectoryResponse
- type UpdateOrganization
- type UpdateOrganizationResponse
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationOptions ¶
type AuthenticationOptions struct {
CodeVerifier string
}
type AuthenticationResponse ¶
type AuthorizationUrlOptions ¶
type Connection ¶
type Connection interface { GetConnection(ctx context.Context, organizationId string, id string) (*GetConnectionResponse, error) ListConnectionsByDomain(ctx context.Context, domain string) (*ListConnectionsResponse, error) ListConnections(ctx context.Context, organizationId string) (*ListConnectionsResponse, error) EnableConnection(ctx context.Context, organizationId string, id string) (*ToggleConnectionResponse, error) DisableConnection(ctx context.Context, organizationId string, id string) (*ToggleConnectionResponse, error) }
type CreateDomainResponse ¶
type CreateDomainResponse = domainsv1.CreateDomainResponse
type CreateOrganizationOptions ¶
type CreateOrganizationOptions struct {
ExternalId string
}
type CreateOrganizationResponse ¶
type CreateOrganizationResponse = organizationsv1.CreateOrganizationResponse
type Directory ¶ added in v1.0.3
type Directory interface { ListDirectories(ctx context.Context, organizationId string) (*ListDirectoriesResponse, error) ListDirectoryUsers(ctx context.Context, organizationId string, directoryId string, options *ListDirectoryUsersOptions) (*ListDirectoryUsersResponse, error) ListDirectoryGroups(ctx context.Context, organizationId string, directoryId string, options *ListDirectoryGroupsOptions) (*ListDirectoryGroupsResponse, error) GetPrimaryDirectoryByOrganizationId(ctx context.Context, organizationId string) (*GetDirectoryResponse, error) EnableDirectory(ctx context.Context, organizationId string, directoryId string) (*ToggleDirectoryResponse, error) DisableDirectory(ctx context.Context, organizationId string, directoryId string) (*ToggleDirectoryResponse, error) GetDirectory(ctx context.Context, organizationId string, directoryId string) (*GetDirectoryResponse, error) }
type GetConnectionResponse ¶
type GetConnectionResponse = connectionsv1.GetConnectionResponse
type GetDirectoryResponse ¶ added in v1.0.3
type GetDirectoryResponse = directoriesv1.GetDirectoryResponse
type GetDomainResponse ¶
type GetDomainResponse = domainsv1.GetDomainResponse
type GetOrganizationResponse ¶
type GetOrganizationResponse = organizationsv1.GetOrganizationResponse
type IdTokenClaims ¶
type IdTokenClaims struct { Id string `json:"sub"` Username string `json:"preferred_username"` Name string `json:"name"` GivenName string `json:"given_name"` FamilyName string `json:"family_name"` Email string `json:"email"` EmailVerified bool `json:"email_verified"` PhoneNumber string `json:"phone_number"` PhoneNumberVerified bool `json:"phone_number_verified"` Profile string `json:"profile"` Picture string `json:"picture"` Gender string `json:"gender"` BirthDate string `json:"birthdate"` ZoneInfo string `json:"zoneinfo"` Locale string `json:"locale"` UpdatedAt string `json:"updated_at"` Identities []Identity `json:"identities"` Metadata string `json:"metadata"` }
type IdpInitiatedLoginClaims ¶ added in v1.0.2
type Link ¶
type Link = organizationsv1.Link
type ListConnectionsResponse ¶
type ListConnectionsResponse = connectionsv1.ListConnectionsResponse
type ListDirectoriesResponse ¶ added in v1.0.3
type ListDirectoriesResponse = directoriesv1.ListDirectoriesResponse
type ListDirectoryGroupsOptions ¶ added in v1.0.3
type ListDirectoryGroupsResponse ¶ added in v1.0.3
type ListDirectoryGroupsResponse = directoriesv1.ListDirectoryGroupsResponse
type ListDirectoryUsersOptions ¶ added in v1.0.3
type ListDirectoryUsersResponse ¶ added in v1.0.3
type ListDirectoryUsersResponse = directoriesv1.ListDirectoryUsersResponse
type ListDomainResponse ¶
type ListDomainResponse = domainsv1.ListDomainResponse
type ListOrganizationOptions ¶ added in v1.0.1
type ListOrganizationOptions = organizationsv1.ListOrganizationsRequest
type ListOrganizationsResponse ¶
type ListOrganizationsResponse = organizationsv1.ListOrganizationsResponse
type Organization ¶
type Organization interface { CreateOrganization(ctx context.Context, name string, options CreateOrganizationOptions) (*CreateOrganizationResponse, error) ListOrganization(ctx context.Context, options *ListOrganizationOptions) (*ListOrganizationsResponse, error) GetOrganization(ctx context.Context, id string) (*GetOrganizationResponse, error) GetOrganizationByExternalId(ctx context.Context, externalId string) (*GetOrganizationResponse, error) UpdateOrganization(ctx context.Context, id string, organization *UpdateOrganization) (*UpdateOrganizationResponse, error) UpdateOrganizationByExternalId(ctx context.Context, externalId string, organization *UpdateOrganization) (*UpdateOrganizationResponse, error) DeleteOrganization(ctx context.Context, id string) error GeneratePortalLink(ctx context.Context, organizationId string) (*Link, error) GetPortalLinks(ctx context.Context, organizationId string) ([]*Link, error) DeletePortalLink(ctx context.Context, organizationId string, linkId string) error UpdateOrganizationSettings(ctx context.Context, id string, settings OrganizationSettings) (*GetOrganizationResponse, error) }
type OrganizationSettings ¶ added in v1.0.3
type OrganizationSettings struct {
Features []Feature
}
type Scalekit ¶
type Scalekit interface { Connection() Connection Directory() Directory Domain() Domain Organization() Organization GetAuthorizationUrl(redirectUri string, options AuthorizationUrlOptions) (*url.URL, error) AuthenticateWithCode( code string, redirectUri string, options AuthenticationOptions, ) (*AuthenticationResponse, error) GetIdpInitiatedLoginClaims(idpInitiateLoginToken string) (*IdpInitiatedLoginClaims, error) ValidateAccessToken(accessToken string) (bool, error) VerifyWebhookPayload(secret string, headers map[string]string, payload []byte) (bool, error) }
func NewScalekitClient ¶
type ToggleConnectionResponse ¶
type ToggleConnectionResponse = connectionsv1.ToggleConnectionResponse
type ToggleDirectoryResponse ¶ added in v1.0.3
type ToggleDirectoryResponse = directoriesv1.ToggleDirectoryResponse
type UpdateOrganization ¶
type UpdateOrganization = organizationsv1.UpdateOrganization
type UpdateOrganizationResponse ¶
type UpdateOrganizationResponse = organizationsv1.UpdateOrganizationResponse
type User ¶
type User = IdTokenClaims
Source Files ¶
Click to show internal directories.
Click to hide internal directories.