Authentication system for nginx auth_request using passport.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
src
.env.sample
.gitignore
Dockerfile
LICENSE
README.md
package.json
yarn.lock

README.md

@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

ENV Example
PORT 3000
NGX_PASSPORT_SECRET_KEY $ openssl rand -base64 32
NGX_PASSPORT_HOST_URL https://auth.example.com
NGX_PASSPORT_APP_REFRESH_INTERVAL 86400
NGX_PASSPORT_ADAPTER_REFRESH_INTERVAL 604800
NGX_PASSPORT_DEFAULT_PROVIDER slack

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