# Custom Login / Registration from another API

**URL:** https://meta.discourse.org/t/custom-login-registration-from-another-api/150703
**Category:** SSO
**Created:** [May 7, 2020, 10:10am UTC](https://meta.discourse.org/t/custom-login-registration-from-another-api/150703 "2020-05-07T10:10:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![daggemarren](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daggemarren/32/177803_2.png) [@daggemarren](https://meta.discourse.org/u/daggemarren)
#### Post date: [May 7, 2020, 10:10am UTC](https://meta.discourse.org/t/custom-login-registration-from-another-api/150703/1 "2020-05-07T10:10:03Z")

</div>

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!

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [May 7, 2020, 5:14pm UTC](https://meta.discourse.org/t/custom-login-registration-from-another-api/150703/2 "2020-05-07T17:14:54Z")

</div>

You can look at [Official Single-Sign-On for Discourse (sso)](https://meta.discourse.org/t/official-single-sign-on-for-discourse-sso/13045) and [OAuth2 Basic Support](https://meta.discourse.org/t/oauth2-basic-support/33879).
