Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OAuthConfig ¶
type OAuthConfig struct {
App struct {
ID string `env:"ID,notEmpty"`
Secret string `env:"SECRET,notEmpty" envDefault:"changeme"`
Scopes []string `env:"SCOPES" envSeparator:" "`
} `envPrefix:"APP_"`
Auth struct {
Redirect struct {
External string `env:"EXTERNAL_URL" envDefault:"http://localhost/"`
InternalRoute string `env:"INTERNAL_ROUTE" envDefault:""`
} `envPrefix:"REDIRECT_"`
} `envPrefix:"AUTH_"`
GitHubIssueTesting struct {
Foo string `env:"FOO" envDefault:""`
Bar string `env:"BAR" envDefault:"abc"`
} `envPrefix:"TESTING_"`
}
OAuthConfig holds configuration for OAuth clients and auth redirects.
Click to show internal directories.
Click to hide internal directories.