Giter Club home page Giter Club logo

chef-oauth2_proxy's Introduction

oauth2_proxy

A cookbook which provides the oauth2_proxy application to allow webservers to authentication against third part Oauth2 providers.

Requirements

This cookbook requires Chef 12.7.0 or later

Platform

Ubuntu

Attributes

  • oauth2_proxy.source: The url to download the oauth2_proxy binary from
  • oauth2_proxy.checksum: The binary checksum
  • oauth2_proxy.install_mode: When to install the binary or from source

Resources

oauth2_proxy_instance

This resource will generate the oauth2_proxy configuration file, upstart service and will ensure that it runs.

Installation

I am currently using this to perform authentication in nginx, and therefore must install via source until such a time as oauth2_proxy commit e61fc9e7a67c85c97516ba6804cd4e0e45bc2a8c is included in the binary release. This should not be a problem is running oauth2_proxy in proxy mode.

google authentication setup

https://github.com/bitly/oauth2_proxy#google-auth-provider

nginx authentication

server {
  # Proxy oauth2 endpoint to oauth2_proxy
  location /oauth2 {
    proxy_pass http://127.0.0.1:4180;
  }

  location / {
    # Require authentication
    auth_request /oauth2/auth;
    error_page 401 = /oauth2/sign_in;

    # Serve our usual content
    proxy_pass http://my_fancy_app;
  }
}

chef-oauth2_proxy's People

Contributors

astral303 avatar ispringer avatar jonathanserafini avatar willejs avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.