* fix: redirects after oauth can potentially misalign with server's actually hostname * feat: remove `RedirectURL` from oauth config, as it should checked by provider rather than client * feat: align oauth endpoint with the hostname in requests
23 lines
575 B
Go
23 lines
575 B
Go
package config
|
|
|
|
type GithubOauth struct {
|
|
ClientId string `mapstructure:"client-id"`
|
|
ClientSecret string `mapstructure:"client-secret"`
|
|
}
|
|
|
|
type GoogleOauth struct {
|
|
ClientId string `mapstructure:"client-id"`
|
|
ClientSecret string `mapstructure:"client-secret"`
|
|
}
|
|
|
|
type OidcOauth struct {
|
|
Issuer string `mapstructure:"issuer"`
|
|
ClientId string `mapstructure:"client-id"`
|
|
ClientSecret string `mapstructure:"client-secret"`
|
|
}
|
|
|
|
type LinuxdoOauth struct {
|
|
ClientId string `mapstructure:"client-id"`
|
|
ClientSecret string `mapstructure:"client-secret"`
|
|
}
|