mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-12 16:22:58 +03:00
32 lines
859 B
Go
32 lines
859 B
Go
|
|
package dto
|
||
|
|
|
||
|
|
type PublicOidcClientDto struct {
|
||
|
|
ID string `json:"id"`
|
||
|
|
Name string `json:"name"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type OidcClientDto struct {
|
||
|
|
PublicOidcClientDto
|
||
|
|
HasLogo bool `json:"hasLogo"`
|
||
|
|
CallbackURLs []string `json:"callbackURLs"`
|
||
|
|
CreatedBy UserDto `json:"createdBy"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type OidcClientCreateDto struct {
|
||
|
|
Name string `json:"name" binding:"required,max=50"`
|
||
|
|
CallbackURLs []string `json:"callbackURLs" binding:"required,urlList"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type AuthorizeOidcClientDto struct {
|
||
|
|
ClientID string `json:"clientID" binding:"required"`
|
||
|
|
Scope string `json:"scope" binding:"required"`
|
||
|
|
Nonce string `json:"nonce"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type OidcIdTokenDto struct {
|
||
|
|
GrantType string `form:"grant_type" binding:"required"`
|
||
|
|
Code string `form:"code" binding:"required"`
|
||
|
|
ClientID string `form:"client_id"`
|
||
|
|
ClientSecret string `form:"client_secret"`
|
||
|
|
}
|