Sign inSign up

3846masa/nginx-passport-adapter

By 3846masa

•Updated over 8 years ago

Authentication system for nginx auth_request using passport.

Image
0

1.1K

3846masa/nginx-passport-adapter repository overview

⁠@3846masa/nginx-passport-adapter

logo

Icon made by Roundicons⁠ from https://www.flaticon.com/⁠ is licensed by CC 3.0 BY⁠


Authentication system for nginx auth_request using passport.

Use passport for your nginx's authentication via ngx_http_auth_request_module.

Inspired by sorah/nginx_omniauth_adapter⁠.

⁠Table of Contents

⁠Install

# WIP

⁠Usage

# WIP
⁠Environment variables

See .env.sample⁠

ENVExample
PORT3000
NGX_PASSPORT_SECRET_KEY$ openssl rand -base64 32
NGX_PASSPORT_HOST_URLhttps://auth.example.com⁠
NGX_PASSPORT_APP_REFRESH_INTERVAL86400
NGX_PASSPORT_ADAPTER_REFRESH_INTERVAL604800
NGX_PASSPORT_DEFAULT_PROVIDERslack
⁠Discord
ENV
NGX_PASSPORT_DISCORD_CLIENT_ID
NGX_PASSPORT_DISCORD_CLIENT_SECRET
NGX_PASSPORT_DISCORD_GUILD_ID
⁠Slack
ENV
NGX_PASSPORT_SLACK_CLIENT_ID
NGX_PASSPORT_SLACK_CLIENT_SECRET
NGX_PASSPORT_SLACK_TEAM_ID

⁠Contribute

PRs accepted.

⁠License

MIT © 3846masa⁠

Tag summary

Content type

Image

Digest

Size

24.7 MB

Last updated

over 8 years ago

docker pull 3846masa/nginx-passport-adapter