Documentation ¶
Index ¶
- type AuthenticationOptions
- type AuthenticationResponse
- type AuthorizationUrlOptions
- type Connection
- type CreateDomainResponse
- type CreateOrganizationOptions
- type CreateOrganizationResponse
- type Domain
- type GetConnectionResponse
- type GetDomainResponse
- type GetOrganizationResponse
- type GrantType
- type IdTokenClaims
- type Identity
- type IdpInitiatedLoginClaims
- type Link
- type ListConnectionsResponse
- type ListDomainResponse
- type ListOrganizationOptions
- type ListOrganizationsResponse
- type Organization
- type Scalekit
- type ToggleConnectionResponse
- 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 GetConnectionResponse ¶
type GetConnectionResponse = connectionsv1.GetConnectionResponse
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 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 }
type Scalekit ¶
type Scalekit interface { Connection() Connection 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) }
func NewScalekitClient ¶
type ToggleConnectionResponse ¶
type ToggleConnectionResponse = connectionsv1.ToggleConnectionResponse
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.