Skip to content

Instantly share code, notes, and snippets.

@taylorsmithgg
Last active September 12, 2017 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taylorsmithgg/7bbceb926f9e2b03ea10bd3a14531cd0 to your computer and use it in GitHub Desktop.
Save taylorsmithgg/7bbceb926f9e2b03ea10bd3a14531cd0 to your computer and use it in GitHub Desktop.
hydra

Docker

Quick up & running demo using Postgres + UI

git clone https://github.com/ory/hydra.git
cd hydra
docker-compose up

Emulate SSH

docker exec -i -t hydra_hydra_1 /bin/sh

Client CLI

Create a client

hydra clients create

Get a token

hydra token client

Validate token

hydra token validate $(hydra token client)

User Login + Token

Login form

hydra token user --auth-url http://localhost:4444/oauth2/auth --token-url http://localhost:4444/oauth2/token

Full Install Guide

Java Example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment