Giter Club home page Giter Club logo

nginx-oidc-azure-ad's Introduction

nginx-oidc-azure-ad

Reference implementation of NGINX Plus as relying party for OpenID Connect authentication w/ Azure Entera.

This repo provides the information of how to set up Azure Entera, integrate with NGINX Plus, and locally test using a containerized NGINX Plus app, a frontend OIDC simulation tool, and a NGINX Dev Portal.

Note:

  • Azure Entera's PKCE is not supported with NGINX Plus OIDC yet.


๐Ÿ  Getting Started

Set up an identity provider (IdP)

Option 1. Set up and Test a SSO application via NGINX Plus

Option 2. Set up and Test a SSO application via NGINX ACM/DevPortal


๐Ÿ”ง Troubleshooting


๐Ÿ“š References

nginx-oidc-azure-ad's People

Contributors

aknot242 avatar pmoghef5 avatar shawnhankim avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

nginx-oidc-azure-ad's Issues

file permission and disable client_id validation

  • Mitigate insecure file permissions vulnerability in Docker container for those of who just copy the Dockerfile although it is for testing purpose.
  • Disable client_id validation so that anyone can continue to sign-in again without removing a cookie when default map key is used. --> When multiple client IdPs are required this client_id validation should be enabled.

IdP end_session_endpoint

Background:

  • https://openid.net/specs/openid-connect-session-1_0-17.html
  • In 2.1. OpenID Provider Discovery Metadata, end_session_endpoint is required field.
  • Currently, the name is called as $oidc_logout_endpoint in NGINX Plus OIDC.
  • Hence, it needs to be replaced with end_session_endpoint to be consistent name with the OIDC specification to prevent any confusion.

AC:

  • Replace $oidc_logout_endpoint with $oidc_session_end_point.

feat: multiple IdP app clients per host

Background:

  • Multiple IdP client applications can be used to a specific host for the following example.
    • host: www.xxx.com
    • Users want to choose either [email protected], or [email protected] based on their email.
    • To support this use case, we need to be able to configure multiple IdP apps per server block.

AC:

  • Replace $host map variable to $oidc_app_identifier.
  • Assign $x_client_id map to $oidc_app_identifier.
  • SPA set $x_client_id in the cookie so that NGINX Plus can choose which IdP app is used.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.