This is a Next.js project which should exemplify a problem with the communication between Hydra and Kratos.
- Docker
- Docker compose
- node >= v14
- npm
$ npm ci
$ docker-compose up
$ npm run dev
- Open 127.0.0.1:3000/registration in the browser of your choice
- Create a new Kratos identity (valid email format, password with a min length of 6)
$ node scripts/start-oauth2-client.cjs
- Open 127.0.0.1:5446 in the browser of your choice
- Follow the directions on the website (click "Authorize application")
- Note that a "Login challenge" will be shown, but the OAuth2 login request data isn't available
- Sign in with the previously created Kratos identity credentials
- After a successful sign in you aren't redirect back to Hydra