Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

About

Authentication system for nginx auth_request using passport.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

@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

About

Authentication system for nginx auth_request using passport.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages