# Discourse Login & Registeration

**URL:** https://meta.discourse.org/t/discourse-login-registeration/50766
**Category:** Development
**Created:** [2016年九月28日 02:28 UTC](https://meta.discourse.org/t/discourse-login-registeration/50766 "2016-09-28T02:28:58Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ErHarinderSingh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erharindersingh/32/121508_2.png) [@ErHarinderSingh](https://meta.discourse.org/u/ErHarinderSingh)
#### Post date: [2016年九月28日 02:28 UTC](https://meta.discourse.org/t/discourse-login-registeration/50766/1 "2016-09-28T02:28:58Z")

</div>

Hello everyone,  
I am building an mobile app for discourse. How I can manage users within the app?  
I want to register the user and login. Only register user can login and post new topics like in this forum. I have done lots of research but in every rest api, there is api\_key required? How a user knows his api\_key without registration? Anyone help please regarding registration and login. I don’t find any solution from last 10 days. I want to do it fast. Please let me know if there is any api where username and password parameters are passed and then login successful. On successful user may get a token or something like api\_key. Using which user can access topics, create new topics etc. under his username. Please let me know about it’s solution.  
Thanks in advance for everyone.

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [2016年九月28日 04:50 UTC](https://meta.discourse.org/t/discourse-login-registeration/50766/2 "2016-09-28T04:50:28Z")

</div>

You can use the user API, just as [Disourse’s mobile app](https://github.com/discourse/DiscourseMobile) does.

---

<div class="post-metadata">

### Author: ![ErHarinderSingh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erharindersingh/32/121508_2.png) [@ErHarinderSingh](https://meta.discourse.org/u/ErHarinderSingh)
#### Post date: [2016年九月28日 05:07 UTC](https://meta.discourse.org/t/discourse-login-registeration/50766/3 "2016-09-28T05:07:04Z")

</div>

Where is user api in this repo? Can you give me link for that?

---

<div class="post-metadata">

### Author: ![ErHarinderSingh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erharindersingh/32/121508_2.png) [@ErHarinderSingh](https://meta.discourse.org/u/ErHarinderSingh)
#### Post date: [2016年九月28日 05:12 UTC](https://meta.discourse.org/t/discourse-login-registeration/50766/4 "2016-09-28T05:12:52Z")

</div>

Is there an apk file for Android for discourse to test? If yes, then please give link to apk file.

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [2016年九月28日 05:48 UTC](https://meta.discourse.org/t/discourse-login-registeration/50766/5 "2016-09-28T05:48:15Z")

</div>

> [@ErHarinderSingh](#):
>
> Where is user api in this repo?

The user API is a feature of Discourse – the link I gave you is the source code of the official mobile app, which uses this API. The best description of the API I found if the #feature:rfc, which you can find here:

> [@User API keys specification](https://meta.discourse.org/t/user-api-keys-specification/48536):
>
> Discourse contains a system for generating API keys per user if a very specific protocol is followed. This feature facilitates “application” access to Discourse instances without needing to involve moderators. High level description At a high level: Client (desktop app, browser plugin, mobile app) generates a private/public key pair and return url Client redirects to a route on discourse giving discourse its public key Discourse gets approval from user to use app Discourse generat…

* * *

> [@ErHarinderSingh](#):
>
> Is there an apk file for Android for discourse to test?

You can ask @sam for a beta invite here:

> [@Beta testing the Android mobile app](https://meta.discourse.org/t/beta-testing-the-android-mobile-app/50165):
>
> We have been testing [our iOS app](https://meta.discourse.org/t/beta-testing-the-ios-mobile-app/49662) for a few weeks with great success and are happy to open up Android for beta testing! I am going to keep a list of known issues updated in this post, so be sure to check the first post in this topic prior to reporting stuff. How it works and what it does. The Android app is an open source react native application. The vast majority of the code is shared between our iOS app and it. Source code lives at: [GitHub - discourse/DiscourseMobile: Discourse Mob…](https://github.com/discourse/discoursemobile)
