mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-06-08 20:40:15 +00:00
21 lines
450 B
Go
21 lines
450 B
Go
package controller
|
|
|
|
type FrontendLoginFor string
|
|
|
|
const (
|
|
FrontendLoginForOIDC FrontendLoginFor = "oidc"
|
|
FrontendLoginForApp FrontendLoginFor = "app"
|
|
)
|
|
|
|
type UnauthorizedQuery struct {
|
|
Username string `url:"username"`
|
|
Resource string `url:"resource"`
|
|
GroupErr bool `url:"groupErr"`
|
|
IP string `url:"ip"`
|
|
}
|
|
|
|
type RedirectQuery struct {
|
|
RedirectURI string `url:"redirect_uri"`
|
|
LoginFor FrontendLoginFor `url:"login_for"`
|
|
}
|