Giter Club home page Giter Club logo

sso's Introduction

SSO

CircleCI MIT license


BuzzFeed's SSO is our single sign-on experience for our internal web services, lovingly known as the S.S. Octopus (octoboi) by our team. In addition to the source code, we publish an official Docker image.

SSO is used to provide single-sign-on authentication and authorization for internal web applications behind it by ensuring that only people in a specific email domain (and optionally users in specific Google Groups) can access them. It consists of two processes - auth and proxy.

The main idea of SSO is a "double OAuth2" flow, where auth is the OAuth2 provider for proxy, and Google or another third-party provider, is the OAuth2 provider for auth.

In a nutshell:

  1. If a user visits a proxy-protected service (foo.sso.example.com) and does not have a session cookie, they are redirected to auth (sso-auth.example.com).
    • If the user does not have a session cookie for auth, they are prompted to log in via the usual Google OAuth2 flow, and then redirected back to proxy where they will now be logged in (to foo.sso.example.com)
    • If the user does have a session cookie for auth (e.g. they have already logged into bar.sso.example.com), they are transparently redirected back to proxy where they will be logged in, without needing to go through the Google OAuth2 flow
  2. proxy transparently re-validates & refreshes the user's session with auth
  3. After 15 days, all sessions are expired and proxy will redirect the user to auth to go through the Google OAuth2 flow once, after which they will again have access to all SSO-protected services.

Code of Conduct

Help us keep SSO open and inclusive. Please read and follow our Code of Conduct.

Contributing

Contributions to SSO are welcome! Please follow our contribution guideline.

Issues

Please file any issues you find in our issue tracker.

Security Vulns

If you come across any security vulnerabilities with the SSO repo or software, please email [email protected]. In your email, please request access to our bug bounty program so we can compensate you for any valid issues reported.

Maintainers

SSO is actively maintained by the BuzzFeed Infrastructure teams.

sso's People

Contributors

danbf avatar

Stargazers

 avatar

Watchers

 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.