# Logging users in through c++ desktop application

**URL:** https://meta.discourse.org/t/logging-users-in-through-c-desktop-application/210938
**Category:** Support
**Created:** [December 2, 2021, 9:42pm UTC](https://meta.discourse.org/t/logging-users-in-through-c-desktop-application/210938 "2021-12-02T21:42:05Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Nerd\_Alert](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nerd_alert/32/237766_2.png) [@Nerd\_Alert](https://meta.discourse.org/u/Nerd_Alert)
#### Post date: [December 2, 2021, 9:42pm UTC](https://meta.discourse.org/t/logging-users-in-through-c-desktop-application/210938/1 "2021-12-02T21:42:05Z")

</div>

I’ve been searching for a bit trying to find out how I could log users in using their forum details in my c++ application. But I haven’t found anything, I did find a post that had a js app thing that did something similar but I have no idea how I can get the correct csrf token.

---

<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: [December 2, 2021, 10:56pm UTC](https://meta.discourse.org/t/logging-users-in-through-c-desktop-application/210938/2 "2021-12-02T22:56:21Z")

</div>

You’ll need to implementing [DiscourseConnect - Official Single-Sign-On for Discourse (sso)](https://meta.discourse.org/t/discourseconnect-official-single-sign-on-for-discourse-sso/13045) in your app.

---

<div class="post-metadata">

### Author: ![Nerd\_Alert](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nerd_alert/32/237766_2.png) [@Nerd\_Alert](https://meta.discourse.org/u/Nerd_Alert)
#### Post date: [December 3, 2021, 2:16am UTC](https://meta.discourse.org/t/logging-users-in-through-c-desktop-application/210938/3 "2021-12-03T02:16:57Z")

</div>

i don’t want to have 2 account systems, i just want users to login with their forum info on the c++ app

---

<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: [December 3, 2021, 10:35am UTC](https://meta.discourse.org/t/logging-users-in-through-c-desktop-application/210938/4 "2021-12-03T10:35:20Z")

</div>

The link I provided describes how to do just that. You can configure your app to authenticate with discourse.

---

<div class="post-metadata">

### Author: ![Nerd\_Alert](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nerd_alert/32/237766_2.png) [@Nerd\_Alert](https://meta.discourse.org/u/Nerd_Alert)
#### Post date: [December 3, 2021, 12:44pm UTC](https://meta.discourse.org/t/logging-users-in-through-c-desktop-application/210938/5 "2021-12-03T12:44:57Z")

</div>

again, not what i’m looking for. but i figured it out anyway.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [December 3, 2021, 12:51pm UTC](https://meta.discourse.org/t/logging-users-in-through-c-desktop-application/210938/6 "2021-12-03T12:51:44Z")

</div>

> [@Nerd\_Alert](#):
>
> but i figured it out anyway.

Can you share your solution? That might help others in the future.

---

<div class="post-metadata">

### Author: ![Nerd\_Alert](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nerd_alert/32/237766_2.png) [@Nerd\_Alert](https://meta.discourse.org/u/Nerd_Alert)
#### Post date: [December 3, 2021, 12:53pm UTC](https://meta.discourse.org/t/logging-users-in-through-c-desktop-application/210938/7 "2021-12-03T12:53:07Z")

</div>

i plan to share once i’m at home.
