Skip to content

cerberauth/account-ory-products

Repository files navigation

Ory Products Starter Kit

Overview

This repository contains a starter kit for Ory products. It is a collection of Docker Compose files that can be used to start with Ory products quickly.

Prerequisites

Products

  • Identity and User Management (CIAM): Ory Kratos
  • OAuth 2.0 and OpenID Connect Provider: Ory Hydra
  • Permission and Role Management (implementation of Zanzibar): Ory Keto (coming soon)
  • Identity and Access Proxy (IAP): Ory Oathkeeper

Usage

  1. Clone this repository:
git clone https://github.com/cerberauth/account-ory-products.git
cd account-ory-products
  1. Configure a local domain for the services. Add the following line to your /etc/hosts file:
127.0.0.1 auth.example.localhost
127.0.0.1 oauth.example.localhost
  1. Copy the .env.example file to .env:
cp .env.example .env

Edit the .env file and set the values for the environment variables. If you have any doubts, you can check the according Ory documentation for each product. In order to generate secure values for the environment variables, you can use the following command:

openssl rand -base64 32
  1. Start the services:
docker-compose -f docker-compose.yml -f docker-compose-kratos.yml up -d

If you want to start Hydra, you can use the following command:

docker-compose -f docker-compose.yml -f docker-compose-hydra.yml -f docker-compose-kratos.yml up -d
  1. Access the services: http:https://auth.example.localhost/welcome

For your new OpenID Connect Provider, you will have to create a new OAuth 2.0 client. You can do this by following the Ory Hydra documentation.