2024-08-23 17:04:19 +02:00
|
|
|
package dto
|
|
|
|
|
|
2025-03-11 14:16:42 -05:00
|
|
|
type OidcClientMetaDataDto struct {
|
2024-08-28 08:21:46 +02:00
|
|
|
ID string `json:"id"`
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
HasLogo bool `json:"hasLogo"`
|
2024-08-23 17:04:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type OidcClientDto struct {
|
2025-03-11 14:16:42 -05:00
|
|
|
OidcClientMetaDataDto
|
2025-02-14 17:09:27 +01:00
|
|
|
CallbackURLs []string `json:"callbackURLs"`
|
|
|
|
|
LogoutCallbackURLs []string `json:"logoutCallbackURLs"`
|
|
|
|
|
IsPublic bool `json:"isPublic"`
|
|
|
|
|
PkceEnabled bool `json:"pkceEnabled"`
|
2025-02-03 18:41:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type OidcClientWithAllowedUserGroupsDto struct {
|
2025-03-11 14:16:42 -05:00
|
|
|
OidcClientDto
|
|
|
|
|
AllowedUserGroups []UserGroupDtoWithUserCount `json:"allowedUserGroups"`
|
2024-08-23 17:04:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type OidcClientCreateDto struct {
|
2025-02-14 17:09:27 +01:00
|
|
|
Name string `json:"name" binding:"required,max=50"`
|
|
|
|
|
CallbackURLs []string `json:"callbackURLs" binding:"required"`
|
|
|
|
|
LogoutCallbackURLs []string `json:"logoutCallbackURLs"`
|
|
|
|
|
IsPublic bool `json:"isPublic"`
|
|
|
|
|
PkceEnabled bool `json:"pkceEnabled"`
|
2024-08-23 17:04:19 +02:00
|
|
|
}
|
|
|
|
|
|
2024-08-24 00:49:08 +02:00
|
|
|
type AuthorizeOidcClientRequestDto struct {
|
2024-11-15 15:00:25 +01:00
|
|
|
ClientID string `json:"clientID" binding:"required"`
|
|
|
|
|
Scope string `json:"scope" binding:"required"`
|
|
|
|
|
CallbackURL string `json:"callbackURL"`
|
|
|
|
|
Nonce string `json:"nonce"`
|
|
|
|
|
CodeChallenge string `json:"codeChallenge"`
|
|
|
|
|
CodeChallengeMethod string `json:"codeChallengeMethod"`
|
2024-08-24 00:49:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type AuthorizeOidcClientResponseDto struct {
|
|
|
|
|
Code string `json:"code"`
|
|
|
|
|
CallbackURL string `json:"callbackURL"`
|
2024-08-23 17:04:19 +02:00
|
|
|
}
|
|
|
|
|
|
2025-02-03 18:41:15 +01:00
|
|
|
type AuthorizationRequiredDto struct {
|
|
|
|
|
ClientID string `json:"clientID" binding:"required"`
|
|
|
|
|
Scope string `json:"scope" binding:"required"`
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-15 15:00:25 +01:00
|
|
|
type OidcCreateTokensDto struct {
|
2024-08-23 17:04:19 +02:00
|
|
|
GrantType string `form:"grant_type" binding:"required"`
|
|
|
|
|
Code string `form:"code" binding:"required"`
|
|
|
|
|
ClientID string `form:"client_id"`
|
|
|
|
|
ClientSecret string `form:"client_secret"`
|
2024-11-15 15:00:25 +01:00
|
|
|
CodeVerifier string `form:"code_verifier"`
|
2024-08-23 17:04:19 +02:00
|
|
|
}
|
2025-02-03 18:41:15 +01:00
|
|
|
|
|
|
|
|
type OidcUpdateAllowedUserGroupsDto struct {
|
|
|
|
|
UserGroupIDs []string `json:"userGroupIds" binding:"required"`
|
|
|
|
|
}
|
2025-02-14 17:09:27 +01:00
|
|
|
|
|
|
|
|
type OidcLogoutDto struct {
|
|
|
|
|
IdTokenHint string `form:"id_token_hint"`
|
|
|
|
|
ClientId string `form:"client_id"`
|
|
|
|
|
PostLogoutRedirectUri string `form:"post_logout_redirect_uri"`
|
|
|
|
|
State string `form:"state"`
|
|
|
|
|
}
|