mannyrivera2010 / hydra-login-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hydra-login-demo

This repo is used to test openid flows. It uses hydra and a custom python identity provider

python identity provider build

Build Dockerfile for python identity provider

(cd openid_provider && docker build -t openid_provider:lastest .)

# Image will be run with docker-compose command no need to run individually 
# docker run --rm --name openid-identity-provider -p 5000:5000 openid_provider:lastest

Commands to run hydra

To run containers

docker-compose -f hydra_quickstart.yml -f hydra_tracing.yml up --build --remove-orphans

Create Oauth2 Client

sh client_create.sh

https://www.ory.sh/docs/hydra/cli/hydra-clients-create

Run Token User Test Website

sh client_test.sh

https://www.ory.sh/docs/hydra/cli/hydra-token-user

Clean up (https://docs.docker.com/compose/reference/down/)

docker-compose -f hydra_quickstart.yml down --volumes --remove-orphans 
docker volume prune
# And check if it's running:
docker logs ory-hydra-example--hydra

Links

# openid-configuration
http://127.0.0.1:4444/.well-known/openid-configuration

# jwks store
http://127.0.0.1:4444/.well-known/jwks.json

# Prometheus
http://localhost:9090/

# Jaeger UI end-to-end distributed tracing
http://localhost:16686/

Reference

About


Languages

Language:Python 99.8%Language:Shell 0.1%Language:HTML 0.1%Language:Dockerfile 0.0%