Home > Net >  Ory / Kratos Login page for Login with Microsoft?
Ory / Kratos Login page for Login with Microsoft?

Time:11-24

I am trying to use Ory Kratos and have users login with their existing Microsoft account. After completing the guide at enter image description here

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:

  1. Clone the repository locally.
  2. Run docker-compose up in one terminal session
  3. In another terminal session, run, go run main.go
  4. 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 :)

  • Related