Sign inSign up

haoling/oauth2-proxy-container

By haoling

•Updated over 8 years ago

oauth2-proxy-container for owncloud oauth2 provider

Image
0

2.0K

haoling/oauth2-proxy-container repository overview

⁠OAuth2 Proxy Container for owncloud

OAuth2 Proxy Container is a Docker Image of oauth2_proxy⁠. An Automated Build is setup at https://hub.docker.com/r/haoling/oauth2-proxy-container/⁠.

⁠Run

# Example command line with jwilder/nginx-proxy
docker run --rm -d \
  --name service-auth \
  --link service-container:service \
  -p 80:80 \
  -e VIRTUAL_HOST={YOUR_SERVICE_ADDRESS}
  haoling/oauth2-proxy-container:owncloud-latest \
  oauth2_proxy \
  --http-address=0.0.0.0:80
  --email-domain=\*
  --login-url=https://{YOUR_OWNCLOUD_SERVER}/index.php/apps/oauth2/authorize
  --redeem-url=https://{YOUR_OWNCLOUD_SERVER}/index.php/apps/oauth2/api/v1/token
  --validate-url=https://{YOUR_OWNCLOUD_SERVER}/ocs/v1.php/cloud/user
  --redirect-url=https://{YOUR_SERVICE_ADDRESS}/oauth2/callback
  --provider=owncloud
  --upstream=http://service/
  --cookie-secret={RANDOM_STRING}
  --client-id={CLIENT_ID}
  --client-secret={CLIENT_SECRET}
  --resource=/permission_file_path

--resource flag is optional. With resource flag, logged in user must can readable specific path file. Otherwise "403 Forbidden".

Tag summary

Content type

Image

Digest

Size

71.3 MB

Last updated

over 8 years ago

docker pull haoling/oauth2-proxy-container:owncloud-latest