mirror of
https://github.com/paralus/paralus.git
synced 2026-05-06 08:26:53 +00:00
* Add DB_ADDR to env vars list * Add Dockerfile and docker-compose * Remove go.mod from _kratos dir and clean go.mod of root dir * Run Kratos docker-compose quickstart from root dir * Add gomigrate to docker-compose * Bump docker-composen version to 3.7 * Add Kratos services in the single docker compose file Removed Kratos quickstart files and merge all setup required for rcloud-base in the kratos-compose.yml file located in the root of the repo. * Add elasticsearch in docker-compose * Allow es to not be available in when in dev mode * Change default ES endpoint Co-authored-by: Abin Simon <abin.simon@rafay.co>
Ory Kratos
This directory holds Ory Kratos configurations and scripts required for rcloud-base.
Get Session token for development
Follow Development setup to start the Kratos server.
Create a temporary user and get session token:
go run development/session_main.go
{
"email": "dev+90197e7d-5f83-45e6-a2a5-86c2c76a42a7@ory.sh",
"password": "96d968dde1f24dcaad1c6162fa9ae040",
"sessionToken": "5xKgL33Oom9rmS4v9jkuAERn7yJHTLhY",
"tokenExpiry": "2022-02-24T07:16:21.169693497Z"
}
How to use token for authentication?
Start rcloud-base server with DEV=false and add token to
X-Session-Token header while making request to access resources, for example:
curl -H 'X-Session-Token: 5xKgL33Oom9rmS4v9jkuAERn7yJHTLhY' http://localhost:11000/auth/v3/sso/idp