mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-10-28 12:45:47 +00:00
feat: oauth email whitelist
This commit is contained in:
@@ -37,6 +37,7 @@ type Config struct {
|
||||
GenericTokenURL string `mapstructure:"generic-token-url"`
|
||||
GenericUserURL string `mapstructure:"generic-user-info-url"`
|
||||
DisableContinue bool `mapstructure:"disable-continue"`
|
||||
Whitelist string `mapstructure:"whitelist"`
|
||||
}
|
||||
|
||||
type UserContext struct {
|
||||
@@ -78,3 +79,7 @@ type OAuthProviders struct {
|
||||
Google *oauth.OAuth
|
||||
Microsoft *oauth.OAuth
|
||||
}
|
||||
|
||||
type UnauthorizedQuery struct {
|
||||
Email string `url:"email"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user