mirror of
https://github.com/h44z/wg-portal.git
synced 2026-01-29 06:36:24 +00:00
* feat: allow multiple auth sources per user (#500,#477) * only override isAdmin flag if it is provided by the authentication source
22 lines
453 B
Go
22 lines
453 B
Go
package domain
|
|
|
|
type LoginProvider string
|
|
|
|
type LoginProviderInfo struct {
|
|
Identifier string
|
|
Name string
|
|
ProviderUrl string
|
|
CallbackUrl string
|
|
}
|
|
|
|
type AuthenticatorUserInfo struct {
|
|
Identifier UserIdentifier
|
|
Email string
|
|
Firstname string
|
|
Lastname string
|
|
Phone string
|
|
Department string
|
|
IsAdmin bool
|
|
AdminInfoAvailable bool // true if the IsAdmin flag is valid
|
|
}
|