I am trying to use Ory Kratos and have users login with their existing Microsoft account. After completing the guide at
That's what I did in my reference implementation that I tried by following the documentation here: https://www.ory.sh/kratos/docs/guides/sign-in-with-github-google-facebook-linkedin/#microsoft
The link to my reference implementation: https://github.com/atreya2011/go-kratos-test/tree/microsoft-oidc
Although my reference implementation is in Go, you can adapt it to any other language of your choice!
The config file details are here: https://github.com/atreya2011/go-kratos-test/tree/microsoft-oidc/config
To try out the reference implementation, you need to have Go and Docker installed and then do the following:
- Clone the repository locally.
- Run
docker-compose up
in one terminal session - In another terminal session, run,
go run main.go
- Then in your browser, open,
http://localhost:4455/login
Don't forget to update the config with your client_id
and client_secret
that you got from Microsoft!
Hope my answer was helpful :)