oauth.go 575 B

1234567891011121314151617181920212223
  1. package config
  2. type GithubOauth struct {
  3. ClientId string `mapstructure:"client-id"`
  4. ClientSecret string `mapstructure:"client-secret"`
  5. }
  6. type GoogleOauth struct {
  7. ClientId string `mapstructure:"client-id"`
  8. ClientSecret string `mapstructure:"client-secret"`
  9. }
  10. type OidcOauth struct {
  11. Issuer string `mapstructure:"issuer"`
  12. ClientId string `mapstructure:"client-id"`
  13. ClientSecret string `mapstructure:"client-secret"`
  14. }
  15. type LinuxdoOauth struct {
  16. ClientId string `mapstructure:"client-id"`
  17. ClientSecret string `mapstructure:"client-secret"`
  18. }