HUB
Sign inSign up
hydra-consent-app-express logo

boeboe/hydra-consent-app-express

By boeboe

•Updated over 6 years ago

Hydra based consent application for Aspen Mesh demos

Image
0

593

boeboe/hydra-consent-app-express repository overview

This is an exemplary consent application that implements ORY Hydra's consent flow. It uses NodeJS and express.

A consent application is responsible for:

  • Authenticating users (signing a user in)
  • Authorizing an application ("Would you like to give application X access to your email address?")

You can use this demo for a rough guide on how to implement the consent flow using NodeJS. The only important source file is this⁠, everything else was created using express init ..

⁠docker

To run this application using docker

$ docker run --name hydra-consent-app-express \
            -p 3000:8080 \
            -e HYDRA_URL="http://localhost:4444"" \
            -e HYDRA_CLIENT_ID="demo" \
            -e HYDRA_CLIENT_SECRET="demo" \
            boeboe/hydra-consent-app-express

This demo consent application contains only one user

const user = {
  email: '[email protected]',
  password: 'secret',

  email_verified: true,
  user_id: 'user:12345:aspenmesh',
  name: 'Aspen Mesh',
  nickname: 'Aspen',
}
Tag summary
Recent tags
Content type
Image
Digest
Size
431.2 MB
Last updated
over 6 years ago
docker pull boeboe/hydra-consent-app-express:latest