https://github.com/stephane-klein/example-how-to-connect-oauth2-proxy-to-gitlab
Example how to connect OAuth2 Proxy to self hosted GitLab instance
https://github.com/stephane-klein/example-how-to-connect-oauth2-proxy-to-gitlab
example gitlab oauth2-proxy
Last synced: 2 months ago
JSON representation
Example how to connect OAuth2 Proxy to self hosted GitLab instance
- Host: GitHub
- URL: https://github.com/stephane-klein/example-how-to-connect-oauth2-proxy-to-gitlab
- Owner: stephane-klein
- Created: 2020-10-03T18:36:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-03T18:37:24.000Z (over 5 years ago)
- Last Synced: 2025-01-28T11:31:07.794Z (over 1 year ago)
- Topics: example, gitlab, oauth2-proxy
- Homepage:
- Size: 322 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example how to connect OAuth2 Proxy to self hosted GitLab instance
How to connect [OAuth2 Proxy](https://oauth2-proxy.github.io/oauth2-proxy/) to self hosted GitLab instance.
Configure new [GitLab Application](https://docs.gitlab.com/ce/integration/oauth_provider.html):

Set variable env in [`docker-compose.yml`](docker-compose.yml)
```
$ docker-compose up -d
```
Go to http://127.0.0.1:4180/ signin and you must see `I'm xxxxxxx`
Some other urls:
- http://127.0.0.1:4180/ping
- http://127.0.0.1:4180/oauth2/sign_in
- http://127.0.0.1:4180/oauth2/sign_out
- http://127.0.0.1:4180/oauth2/userinfo