Skip to content

A ReScript React implementation of Kratos browser authentication flows.

License

Notifications You must be signed in to change notification settings

allancalix/kratos-ui

Repository files navigation

ReScript React Kratos UI

A SPA (single page application) implementation of the browser-based flows for Kratos. Currently, the UI implements the login, logout, registration, and recovery flows. Rather than using redirects, this implementation leverages Kratos AJAX support to initialize flows.

Tour

Login

/login login

Registration

/register login

Recovery

/recovery login

Landing

/ login

Try it yourself

# Start backends to run UI against. This includes:
#   * Kratos
#   * Postgres - datastore for Kratos data
#   * Mailslurper - a test email server for routing recovery emails
#
# Optionally add `-d` flag in order to detach and run in the background.
docker-compose -f kratos/docker-compose-backends.yaml up --build --force-recreate

# Terminal 1 start ReScript compiler file watcher
npm run re:start

# Terminal 2 start parcel to bundle and serve UI
npm run serve

Not Implemented

  • Admin UI for managing Kratos assets.
  • Account management pages for user self-serve account updates.

About

A ReScript React implementation of Kratos browser authentication flows.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published