"gate" for your private resources gate is a static file server and reverse proxy integrated with OAuth2 account authentication. With gate, …
"gate" for your private resources gate is a static file server and reverse proxy integrated with OAuth2 account authentication. With gate, …
gate is a static file server and reverse proxy integrated with OAuth2 account authentication.
With gate, you can safely serve your private resources based on whether or not request user is a member of your company's Google Apps or GitHub organizations.
go getconfig_sample.yml to config.ymlconfig.yml to fit your environmentgate…gate now supports Google Apps and GitHub to authenticate users.
auth:
info:
service: google
client_id: your client id
client_secret: your client secret
redirect_url: https://yourapp.example.com/oauth2callback
# restrict user request. (optional)
restrictions:
- yourdomain.com # domain of your Google App
- [email protected] # specific email addressUnlike the example of Google Apps above, if the service is GitHub, gate uses whether request user is a member of organization designated like below:
auth:
info:
service: github
client_id: your client id
client_secret: your client secret
redirect_url: https://yourapp.example.com/oauth2callback
# restrict user request. (optional)
restrictions:
- foo_organization
- bar_organizationGitHub Enterprise is also supported. To authenticate via github enterprise, add api endpoint information to config like following:
auth:
info:
service: github
client_id: your client id
client_secret: your client secret
redirect_url: https://yourapp.example.com/oauth2callback
endpoint: https://github.yourcompany.com
api_endpoint: https://github.yourcompany.com/apiAn example of "Name Based Viatual Host" setting.
auth:
session:
# authentication key for cookie store
key: secret123
# domain of virtual hosts base host
cookie_domain: gate.example.com
# proxy definitions
proxy:
- path: /
host: elasticsearch.gate.example.com
dest: http://127.0.0.1:9200
- path: /
host: influxdb.gate.example.com
dest: http://127.0.0.1:8086MIT
No open issues yet, or sync has not completed.