Custom Login / Registration from another API

Hello! Little background… In Sweden we have an app called “Bankd ID”. We can use this app to login to other apps etc.

What i want to achive is.

Login page

  • User enter their personal number.
  • They open “Bank ID” and authorize my discourse app.
  • They are now logged in

Registration

  • User enter their personal number
  • They open “Bank ID” and authorize my discourse app.
  • Fields is filled with information i get from the Bank ID Api

I need som help/guidance for this… Thanks!

You can look at Official Single-Sign-On for Discourse (sso) and OAuth2 Basic Support.