Merge pull request #30 from IamTaoChen/oidc

Add General OIDC Login
This commit is contained in:
2024-10-30 14:40:10 +08:00
committed by GitHub
12 changed files with 405 additions and 34 deletions

View File

@@ -7,12 +7,15 @@ type Oauth struct {
ClientSecret string `json:"client_secret"`
RedirectUrl string `json:"redirect_url"`
AutoRegister *bool `json:"auto_register"`
Scopes string `json:"scopes"`
Issuer string `json:"issuer"`
TimeModel
}
const (
OauthTypeGithub = "github"
OauthTypeGoogle = "google"
OauthTypeOidc = "oidc"
OauthTypeWebauth = "webauth"
)