Sign inSign up

hand/auth-proxy

By hand

•Updated over 8 years ago

An auth-proxy application can run behind auth validate

Image
0

146

hand/auth-proxy repository overview

⁠Quick start

⁠Run in docker

docker run -e  AUTH_TYPE=oauth \
-e PROXY_URL="https://vinkdong.com" \
-e BASE_URL=http://192.168.99.100:9081 \
-e OAUTH_AUTH_URL=https://login.vinkdong.com/oauth/oauth/authorize \
-e OAUTH_TOKEN_URL=https://login.vinkdong.com/oauth/oauth/token \
-e OAUTH_CHECK_URL=https://login.vinkdong.com/iam/v1/users/self \
-e OAUTH_CLIENT_ID=authproxy \
-e OAUTH_CLIENT_SECRET=choerodon  -p 9081:9081 \
hand/auth-proxy

⁠Common

  • AUTH_TYPE: auth type you can choice cas,basic and oauth

  • PROXY_URL: request url you want to reverse-proxy

  • BASE_URL: user enter url, do not end with /

⁠In CAS mode

  • CAS_URL: cas basic url

⁠In Oauth mode

  • OAUTH_AUTH_URL: auth url
  • OAUTH_TOKEN_URL: token url
  • OAUTH_CHECK_URL: check token url
  • OAUTH_CLIENT_ID: client id
  • OAUTH_CLIENT_SECRET: client secret

⁠In basic mode

  • USERNAME: username
  • PASSWORD: password

Tag summary

Content type

Image

Digest

Size

4.8 MB

Last updated

over 8 years ago

docker pull hand/auth-proxy