Giter Club home page Giter Club logo

hydra-login-consent-python's Introduction

Hydra login/consent provider - Python

This is an example implementation for the User Login and Consent flow of ORY Hydra version 1.0.x in Python.

Requirements: Python >= 3.7

Running locally

Use the official Docker Compose file from the Hydra repository and comment out the complete consent service (official NodeJS reference implementation).

Make sure to also change the OAUTH2_LOGIN_URL and OAUTH2_CONSENT_URL in the Compose file as follows:

OAUTH2_CONSENT_URL=http://localhost:5000/consent
OAUTH2_LOGIN_URL=http://localhost:5000/login

Afterwards you can install the dependencies and run the example application:

$ pip install -r requirements.txt
$ flask run

Follow the instructions in the 5 minute tutorial for testing the various OAuth 2.0 grant types.

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.