Documentation
¶
Index ¶
- type AssignRoleRequestDto
- type AssociateServiceUserPublicKeyRequestDto
- type AssociateServiceUserPublicKeyResponseDto
- type CreateApplicationRequestDto
- type CreateApplicationResponseDto
- type CreatePasswordRuleRequestDto
- type CreateProjectRequestDto
- type CreateProjectResponseDto
- type CreateResourceServerRequestDto
- type CreateResourceServerScopeRequestDto
- type CreateResourceServerScopeResponseDto
- type CreateRoleRequestDto
- type CreateRoleResponseDto
- type CreateServiceUserRequestDto
- type CreateServiceUserResponseDto
- type CreateUserRequestDto
- type CreateUserRequestDtoPasword
- type CreateUserResponseDto
- type CreateVirtualServerRequestDto
- type CreateVirtualServerRequestDtoAdminDto
- type CreateVirtualServerRequestDtoProjectDto
- type CreateVirtualServerRequestDtoProjectDtoApplicationDto
- type CreateVirtualServerRequestDtoProjectDtoResourceServerDto
- type CreateVirtualServerRequestDtoProjectDtoRoleDto
- type CreateVirtualServerRequestDtoServiceUserDto
- type DeviceAuthorizationResponse
- type DeviceTokenResponse
- type GetApplicationResponseDto
- type GetProjectResponseDto
- type GetResourceServerResponseDto
- type GetResourceServerScopeResponseDto
- type GetRoleByIdResponseDto
- type GetTemplateResponseDto
- type GetUserApplicationMetadataResponseDto
- type GetUserByIdResponseDto
- type GetUserGlobalMetadataResponseDto
- type GetUserMetadataResponseDto
- type GetVirtualServerListResponseDto
- type GetVirtualServerResponseDto
- type ListApplicationsResponseDto
- type ListAuditLogResponseDto
- type ListGroupsResponseDto
- type ListPasskeyResponseDto
- type ListPasswordRulesResponseDto
- type ListProjectsResponseDto
- type ListResourceServerScopesResponseDto
- type ListResourceServersResponseDto
- type ListRolesResponseDto
- type ListTemplatesResponseDto
- type ListUsersInRoleResponseDto
- type ListUsersResponseDto
- type PagedApplicationsResponseDto
- type PagedAuditLogResponseDto
- type PagedGroupsResponseDto
- type PagedListPasskeyResponseDto
- type PagedPasswordRuleResponseDto
- type PagedProjectsResponseDto
- type PagedResourceServerScopeResponseDto
- type PagedResourceServersResponseDto
- type PagedResponseDto
- type PagedRolesResponseDto
- type PagedTemplatesResponseDto
- type PagedUsersInRoleResponseDto
- type PagedUsersResponseDto
- type Pagination
- type PasskeyCreateChallengeResponseDto
- type PasskeyValidateChallengeRequestDto
- type PatchApplicationRequestDto
- type PatchPasswordRuleRequestDto
- type PatchUserApplicationMetadataRequestDto
- type PatchUserGlobalMetadataRequestDto
- type PatchUserRequestDto
- type PatchVirtualServerRequestDto
- type RegisterUserRequestDto
- type UpdateUserApplicationMetadataRequestDto
- type UpdateUserGlobalMetadataRequestDto
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssignRoleRequestDto ¶
type AssociateServiceUserPublicKeyRequestDto ¶
type AssociateServiceUserPublicKeyRequestDto struct {
PublicKey string `json:"publicKey" validate:"required"`
}
type AssociateServiceUserPublicKeyResponseDto ¶
type AssociateServiceUserPublicKeyResponseDto struct {
Kid string `json:"kid"`
}
type CreateApplicationRequestDto ¶
type CreateApplicationRequestDto struct {
Name string `json:"name" validate:"required,min=1,max=255"`
DisplayName string `json:"displayName" validate:"required,min=1,max=255"`
RedirectUris []string `json:"redirectUris" validate:"required,dive,url,min=1"`
PostLogoutUris []string `json:"postLogoutUris" validate:"dive,url"`
Type string `json:"type" validate:"required,oneof=public confidential"`
AccessTokenHeaderType *string `json:"accessTokenHeaderType" validate:"omitempty,oneof=at+jwt JWT"`
DeviceFlowEnabled bool `json:"deviceFlowEnabled"`
}
type CreateProjectRequestDto ¶
type CreateRoleRequestDto ¶
type CreateRoleResponseDto ¶
type CreateServiceUserRequestDto ¶
type CreateServiceUserRequestDto struct {
Username string `json:"username" validate:"required,min=1,max=255"`
}
type CreateUserRequestDto ¶
type CreateUserRequestDto struct {
Username string `json:"username" validate:"required"`
DisplayName string `json:"displayName" validate:"required"`
Email string `json:"email" validate:"required"`
EmailVerified bool `json:"emailVerified" validate:"required"`
Password *CreateUserRequestDtoPasword `json:"password"`
}
type CreateUserResponseDto ¶
type CreateVirtualServerRequestDto ¶
type CreateVirtualServerRequestDto struct {
Name string `json:"name" validate:"required,min=1,max=255,alphanum"`
DisplayName string `json:"displayName" validate:"required,min=1,max=255"`
EnableRegistration bool `json:"enableRegistration"`
SigningAlgorithm *string `json:"signingAlgorithm" validate:"oneof=RS256 EdDSA"`
Require2fa bool `json:"require2fa"`
Admin *CreateVirtualServerRequestDtoAdminDto `json:"admin"`
ServiceUsers []CreateVirtualServerRequestDtoServiceUserDto `json:"serviceUsers"`
Projects []CreateVirtualServerRequestDtoProjectDto `json:"projects"`
}
type CreateVirtualServerRequestDtoAdminDto ¶
type CreateVirtualServerRequestDtoAdminDto struct {
Username string `json:"username" validate:"required,min=1,max=255"`
DisplayName string `json:"displayName" validate:"required,min=1,max=255"`
PrimaryEmail string `json:"primaryEmail" validate:"required,email"`
PasswordHash string `json:"passwordHash" validate:"required"`
Roles []string `json:"roles"`
}
type CreateVirtualServerRequestDtoProjectDto ¶
type CreateVirtualServerRequestDtoProjectDto struct {
Slug string `json:"slug" validate:"required,min=1,max=255"`
Name string `json:"name" validate:"required,min=1,max=255"`
Description string `json:"description"`
Roles []CreateVirtualServerRequestDtoProjectDtoRoleDto `json:"roles"`
Applications []CreateVirtualServerRequestDtoProjectDtoApplicationDto `json:"applications"`
ResourceServers []CreateVirtualServerRequestDtoProjectDtoResourceServerDto `json:"resourceServers"`
}
type CreateVirtualServerRequestDtoProjectDtoApplicationDto ¶
type CreateVirtualServerRequestDtoProjectDtoApplicationDto struct {
Name string `json:"name" validate:"required,min=1,max=255"`
DisplayName string `json:"displayName" validate:"required,min=1,max=255"`
Type string `json:"type" validate:"required,oneof=public confidential"`
HashedSecret *string `json:"hashedSecret"`
RedirectUris []string `json:"redirectUris" validate:"required,dive,url,min=1"`
PostLogoutUris []string `json:"postLogoutUris" validate:"dive,url"`
}
type CreateVirtualServerRequestDtoServiceUserDto ¶
type CreateVirtualServerRequestDtoServiceUserDto struct {
Username string `json:"username" validate:"required,min=1,max=255"`
Roles []string `json:"roles"`
PublicKey struct {
Pem string `json:"pem" validate:"required"`
Kid string `json:"kid" validate:"required"`
} `json:"publicKey" validate:"required"`
}
type DeviceTokenResponse ¶
type GetApplicationResponseDto ¶
type GetApplicationResponseDto struct {
Id uuid.UUID `json:"id"`
Name string `json:"name"`
DisplayName string `json:"displayName"`
Type string `json:"type"`
RedirectUris []string `json:"redirectUris"`
PostLogoutRedirectUris []string `json:"postLogoutRedirectUris"`
SystemApplication bool `json:"systemApplication"`
ClaimsMappingScript *string `json:"customClaimsMappingScript"`
DeviceFlowEnabled bool `json:"deviceFlowEnabled"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type GetProjectResponseDto ¶
type GetRoleByIdResponseDto ¶
type GetTemplateResponseDto ¶
type GetUserByIdResponseDto ¶
type GetUserByIdResponseDto struct {
Id uuid.UUID `json:"id"`
Username string `json:"username"`
DisplayName string `json:"displayName"`
PrimaryEmail string `json:"primaryEmail"`
EmailVerified bool `json:"emailVerified"`
IsServiceUser bool `json:"isServiceUser"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type GetVirtualServerResponseDto ¶
type GetVirtualServerResponseDto struct {
Id uuid.UUID `json:"id"`
Name string `json:"name"`
DisplayName string `json:"displayName"`
RegistrationEnabled bool `json:"registrationEnabled"`
Require2fa bool `json:"require2fa"`
RequireEmailVerification bool `json:"requireEmailVerification"`
SigningAlgorithm string `json:"signingAlgorithm"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type ListAuditLogResponseDto ¶
type ListAuditLogResponseDto struct {
Id uuid.UUID `json:"id"`
UserId *uuid.UUID `json:"userId"`
RequestType string `json:"requestType"`
RequestData map[string]any `json:"requestData"`
ResponseData *map[string]any `json:"responseData"`
Allowed bool `json:"allowed"`
AllowReasonType *string `json:"allowReasonType"`
AllowReason *map[string]any `json:"allowReason"`
CreatedAt time.Time `json:"createdAt"`
}
type ListGroupsResponseDto ¶
type ListPasskeyResponseDto ¶
type ListProjectsResponseDto ¶
type ListRolesResponseDto ¶
type ListUsersResponseDto ¶
type PagedApplicationsResponseDto ¶
type PagedApplicationsResponseDto = PagedResponseDto[ListApplicationsResponseDto]
type PagedAuditLogResponseDto ¶
type PagedAuditLogResponseDto struct {
Items []ListAuditLogResponseDto `json:"items"`
Pagination Pagination `json:"pagination"`
}
type PagedGroupsResponseDto ¶
type PagedGroupsResponseDto = PagedResponseDto[ListGroupsResponseDto]
type PagedListPasskeyResponseDto ¶
type PagedListPasskeyResponseDto struct {
Items []ListPasskeyResponseDto `json:"items"`
}
type PagedPasswordRuleResponseDto ¶
type PagedPasswordRuleResponseDto struct {
Items []ListPasswordRulesResponseDto `json:"items"`
}
type PagedProjectsResponseDto ¶
type PagedProjectsResponseDto = PagedResponseDto[ListProjectsResponseDto]
type PagedResourceServerScopeResponseDto ¶
type PagedResourceServerScopeResponseDto = PagedResponseDto[ListResourceServerScopesResponseDto]
type PagedResourceServersResponseDto ¶
type PagedResourceServersResponseDto = PagedResponseDto[ListResourceServersResponseDto]
type PagedResponseDto ¶
type PagedResponseDto[T any] struct { Items []T `json:"items"` Pagination *Pagination `json:"pagination"` }
type PagedRolesResponseDto ¶
type PagedRolesResponseDto struct {
Items []ListRolesResponseDto `json:"items"`
Pagination Pagination `json:"pagination"`
}
type PagedTemplatesResponseDto ¶
type PagedTemplatesResponseDto struct {
Items []ListTemplatesResponseDto `json:"items"`
Pagination Pagination `json:"pagination"`
}
PagedTemplatesResponseDto is the paged envelope for ListTemplates.
type PagedUsersInRoleResponseDto ¶
type PagedUsersInRoleResponseDto = PagedResponseDto[ListUsersInRoleResponseDto]
type PagedUsersResponseDto ¶
type PagedUsersResponseDto struct {
Items []ListUsersResponseDto `json:"items"`
Pagination Pagination `json:"pagination"`
}
type Pagination ¶
type PasskeyValidateChallengeRequestDto ¶
type PasskeyValidateChallengeRequestDto struct {
Id uuid.UUID `json:"id" validate:"required"`
WebauthnResponse struct {
Id string `json:"id"`
RawId string `json:"rawId"`
Response struct {
ClientDataJSON string `json:"clientDataJSON"`
AuthenticatorData string `json:"authenticatorData"`
Transports []string `json:"transports"`
PublicKey string `json:"publicKey"`
PublicKeyAlgorithm int `json:"publicKeyAlgorithm"`
AttestationObject string `json:"attestationObject"`
} `json:"response"`
AuthenticatorAttachment string `json:"authenticatorAttachment"`
Type string `json:"type"`
} `json:"webauthnResponse" validate:"required"`
}
type PatchUserRequestDto ¶
type RegisterUserRequestDto ¶
Click to show internal directories.
Click to hide internal directories.