You've already forked oauth2-proxy
mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-08-24 19:49:15 +02:00
.devcontainer
.github
.vscode
contrib
docs
docs
src
static
versioned_docs
version-7.0.x
version-7.1.x
community
configuration
features
behaviour.md
installation.md
version-7.2.x
version-7.3.x
version-7.4.x
version-7.5.x
version-7.6.x
versioned_sidebars
.gitignore
README.md
babel.config.js
docusaurus.config.js
package-lock.json
package.json
sidebars.js
versions.json
pkg
providers
static
testdata
tools
.dockerignore
.gitignore
.golangci.yml
.pre-commit-config.yaml
CHANGELOG.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
Dockerfile
LICENSE
MAINTAINERS
Makefile
README.md
RELEASE.md
SECURITY.md
dist.sh
go.mod
go.sum
main.go
main_suite_test.go
main_test.go
oauthproxy.go
oauthproxy_test.go
validator.go
validator_test.go
865 B
865 B
id, title
id | title |
---|---|
behaviour | Behaviour |
- Any request passing through the proxy (and not matched by
--skip-auth-regex
) is checked for the proxy's session cookie (--cookie-name
) (or, if allowed, a JWT token - see--skip-jwt-bearer-tokens
). - If authentication is required but missing then the user is asked to log in and redirected to the authentication provider (unless it is an Ajax request, i.e. one with
Accept: application/json
, in which case 401 Unauthorized is returned) - After returning from the authentication provider, the oauth tokens are stored in the configured session store (cookie, redis, ...) and a cookie is set
- The request is forwarded to the upstream server with added user info and authentication headers (depending on the configuration)
Notice that the proxy also provides a number of useful endpoints.