mirror of
https://github.com/m1k1o/neko.git
synced 2026-11-03 08:21:50 -06:00
7573d43c95
in the furure we should refactor all configs to be part of the providers with init and set functions.
27 lines
568 B
Go
27 lines
568 B
Go
package oauth
|
|
|
|
import (
|
|
"github.com/m1k1o/neko/server/pkg/types"
|
|
)
|
|
|
|
type Config struct {
|
|
Enabled bool
|
|
AutoRedirect bool
|
|
Name string
|
|
AdminEmails []string
|
|
ClientID string
|
|
ClientSecret string
|
|
IssuerURL string
|
|
AuthorizationURL string
|
|
TokenURL string
|
|
UserInfoURL string
|
|
RedirectURL string
|
|
Scopes []string
|
|
SubjectField string
|
|
UsernameField string
|
|
AvatarField string
|
|
SuccessRedirect string
|
|
AdminProfile types.MemberProfile
|
|
UserProfile types.MemberProfile
|
|
}
|