package
Version:
v0.0.0-...-e3f99e4
Opens a new window with list of versions in this module.
Published: Mar 1, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type AuthClient struct {
Id string `json:"client_id"`
Name string `json:"name"`
Secret string `json:"client_secret"`
Scopes []string `json:"scope"`
RedirectUri []string `json:"redirect_uri"`
}
type AuthorizeHeader struct {
}
type AuthorizeLoginReq struct {
Username string `form:"username"`
Password string `form:"password"`
ClientId string `form:"client_id"`
RedirectURI string `form:"redirect_uri"`
Scope string `form:"scope"`
State string `form:"state"`
CSRFToken string `form:"csrf_token"`
}
type ErrRes struct {
Error string `json:"error"`
Msg string `json:"msg"`
}
ErrRes is the response body for an error.
type SignUpReq struct {
Username string `form:"username"`
Password string `form:"password"`
CSRFToken string `form:"csrf_token"`
}
UserNewReq is the request body for the POST /auth/user route
type StoreData struct {
Ts int64 `json:"ts"`
Data string `json:"data"`
From string `json:"from"`
}
type Token struct {
AccessToken string `json:"access_token"`
TokenType string `json:"token_type"`
ExpiresIn int `json:"expires_in"`
Scope string `json:"scope"`
RefreshToken string `json:"refresh_token"`
RefreshTokenExpiresIn int `json:"refresh_token_expires_in"`
}
type TokenReq struct {
GrantType string `form:"grant_type"`
ClientId string `form:"client_id"`
ClientSecret string `form:"client_secret"`
Code string `form:"code"`
RefreshToken string `form:"refresh_token"`
}
type UserInfo struct {
Sub string `json:"sub"`
Name string `json:"name"`
Email string `json:"email"`
}
type UserNewRes struct {
Error string `json:"error"`
Id id.ID `json:"id"`
}
type UserPassword struct {
ID id.ID `json:"id"`
Username string `json:"username"`
Password string `json:"password"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.