Code Monkey home page Code Monkey logo

login's Introduction

Login

Treehacks login used for SSO.

Deployed at https://login.treehacks.com

Dev version deployed at https://login.dev.treehacks.com

Usage

Login - Go to https://login.treehacks.com

Login with redirect - Go to https://login.treehacks.com/?redirect=https://mentor.treehacks.com

Logout - Go to https://login.treehacks.com/logout

Verification - Go to https://login.treehacks.com/verify?username=910e6571-c11e-4c83-9e27-cf220bdd6e41&code=315131

Environment variables

This whitelist includes all URLs that the user can be redirected to after the login/logout process completes, and is there for security reasons. To set up the whitelist, use a comma-separated list of addresses in the LOGIN_REDIRECT_WHITELIST variable. To match a domain, enter that domain. To match any subdomain, use a wildcard -- for example, *.treehacks.com. We only support wildcard matching on a direct subdomain (i.e., we support *.treehacks.com but not *.dev.treehacks.com).

Local setup

  1. Download the appropriate .env file with the proper environment variables set, and put it in your working directory.
  2. Run npm install
  3. Run npm start
  4. Open http://localhost:9000 in your browser.

Running tests

Application will deploy to Heroku only if tests pass. Run npm test to run tests.

Run npm test -- -u to update snapshots.

login's People

Contributors

epicfaace avatar theopolisme avatar mykatz avatar oliviabrown9 avatar guananya avatar lucaspauker avatar jsutaria avatar marcopizarro avatar davidjtoomer avatar quantumarjun avatar christ17 avatar sathviknallamalli avatar andrewk1 avatar dependabot[bot] 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.