Giter Site home page Giter Site logo

jonathanporta / envoy-oauth2-filter-google Goto Github PK

View Code? Open in Web Editor NEW

This project forked from veehaitch/envoy-oauth2-filter-google

0.0 1.0 0.0 12 KB

A proof-of-concept deployment to showcase Envoy's OAuth2 filter with Google's OAuth2 API.

License: Apache License 2.0

Dockerfile 29.07% Python 70.93%

envoy-oauth2-filter-google's Introduction

Google Envoy Filter OAuth2

A proof-of-concept deployment to showcase Envoy's OAuth2 filter with Google's OAuth2 API. The OAuth2 filter is an alpha feature under active development.

Prerequisites

Google Setup

  1. Create a new OAuth client ID and secret under the credentials section for your API project (or create a new one, if necessary) at Google's API Console.
  2. Add the Client ID to client_id in envoy/envoy.yaml and the client secret to envoy/token-secret.yaml.
  3. Make sure you add the redirect_uri from envoy/envoy.yaml to the list of authorized redirect URIs for your Google OAuth client.
  4. Add the openid scope to the OAuth consent screen.
  5. To test your setup, verify you have added at least one test user with a Google account you have access to.

Adapt configs to your setup

  1. Adapt the configuration (hosts, ports, routes, ...) of envoy/envoy.yaml or of any Dockerfile to your setup if/as needed.
  2. Generate an HMAC key and insert it into envoy/hmac-secret.yaml: head -c 32 /dev/urandom | base64

Run

The sample code uses docker-compose and consists of two services:

  1. envoy: This container runs the official envoyproxy/envoy-dev image. Make sure it includes @andreyprezotto's pull request if you're not using the latest tag.

  2. upstream: A tiny Python service which prints a success message and the request headers.

envoy-oauth2-filter-google's People

Contributors

veehaitch avatar

Watchers

James Cloos 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.