# Hoe maak ik een login op mijn front-end applicatie naar een specifieke Discourse site?

**URL:** https://meta.discourse.org/t/how-to-create-a-login-on-my-front-end-application-to-a-specific-discourse-site/248892
**Category:** Development
**Created:** [14 december 2022 om 07:52 UTC](https://meta.discourse.org/t/how-to-create-a-login-on-my-front-end-application-to-a-specific-discourse-site/248892 "2022-12-14T07:52:27Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![renato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/renato/32/383632_2.png) [@renato](https://meta.discourse.org/u/renato)
#### Post date: [14 december 2022 om 13:03 UTC](https://meta.discourse.org/t/how-to-create-a-login-on-my-front-end-application-to-a-specific-discourse-site/248892/9 "2022-12-14T13:03:13Z")

</div>

I’m using [Discourse as my identity provider](https://meta.discourse.org/t/use-discourse-as-an-identity-provider-sso-discourseconnect/32974) and it has been working great, you can use it to create a “ **Login** ” link on your website which will take your user to your Discourse instance and, if they’re already logged in or after completing the login flow, the user will be redirected to the `return_sso_url` you added to the payload, with the user credentials and info. This `return_sso_url` can be a route on your website that stores the authenticated session the way you prefer (like a session cookie) once it receives Discourse’s payload.

---

_[View the full topic](https://meta.discourse.org/t/how-to-create-a-login-on-my-front-end-application-to-a-specific-discourse-site/248892)._
