Ilya Mateyko
4464802947
Reformat some Go files
...
When working on #994 I noticed that some Go files are not formatted with
`gofmt`.
This PR fixes this.
2021-01-27 18:13:58 -08:00
Patrick
3e1e0b604f
Add generic OpenID Connect provider (OAuth2)
...
This adds the oauth2 provider `oidc`. It needs an additional argument, the OIDC discovery endpoint to figure out where the auth and token URLs are.
Configuration is similar to setting up the Google Authentication with these changes:
* `OAUTH2_PROVIDER = oidc`
* `OAUTH2_OIDC_DISCOVERY_ENDPOINT = https://auth.exampe.org/discovery `
2020-03-07 18:45:19 -08:00
Frédéric Guillot
228862fefa
Refactor config package
...
- Parse configuration only once during startup time
- Store configuration values in a global variable
2019-06-02 06:30:08 -07:00
Frédéric Guillot
1f58b37a5e
Refactor HTTP response builder
2018-10-08 15:31:58 -07:00
Frédéric Guillot
dbcc5d8a97
Use canonical imports
2018-08-24 21:56:39 -07:00
Frédéric Guillot
f49b42f70f
Use vanilla HTTP handlers (refactoring)
2018-04-29 16:35:04 -07:00
Frédéric Guillot
9c42997209
Add support for base URLs with subfolders
2018-02-03 15:33:17 -08:00
Frédéric Guillot
da5c8c2edb
Move environment variables to config package
2018-01-20 16:49:47 -08:00
Frédéric Guillot
320d1b0167
Refactor packages to have more idiomatic code base
2018-01-02 22:04:48 -08:00