Code Monkey home page Code Monkey logo

azure-oauth's Introduction

Azure Oauth

This playbook deploys the Oauth_Proxy software specifically to function with Azure Active Directory

Usage

An application must be created in Azure as in this guide

The role then takes three variables

azure_tenantid:  xxx-xxx-xxx-xxx | default is common same as Oauth proxy
webauth_client_id: xxxx-xxxx-xxxx # Found from the creation of the application
webauth_client_secret: xxxxxxxxxx # Generated inside of the application

This starts and enables the service. In order to consume it you will need to include the oauth.conf nginx snippit in your desired website as below this role is dependant on mod-nginx

/etc/nginx/conf.d/myhost.conf

server {
    listen 443 ssl;
    root         /usr/share/nginx/html;
    server_name example.com;
    ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; 

    # Include the authorization backend
    include /etc/nginx/oauth.conf;
    
    location / {
            # send all requests to the `/auth` endpoint for authorization
            auth_request /auth/auth;
            error_page 401 = /auth/sign_in;
    }


}

This will define example.com with authentication to the defined azure application specifically within the tenant.

Advanced

There are numerous other options within the defaults/main.yml that can change other parts of the behavior of the system

azure-oauth's People

Contributors

darkbat91 avatar

Watchers

 avatar  avatar

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.