# Bei Discourse mit Mastodon-Anmeldedaten anmelden

**URL:** https://meta.discourse.org/t/login-on-discourse-using-mastodon-credentials/91445
**Category:** SSO
**Created:** [3. Juli 2018 um 07:02 UTC](https://meta.discourse.org/t/login-on-discourse-using-mastodon-credentials/91445 "2018-07-03T07:02:46Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![taicv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/taicv/32/167864_2.png) [@taicv](https://meta.discourse.org/u/taicv)
#### Post date: [19. Dezember 2019 um 17:31 UTC](https://meta.discourse.org/t/login-on-discourse-using-mastodon-credentials/91445/3 "2019-12-19T17:31:34Z")

</div>

1. Installieren Sie dieses Plugin, um OAuth2 zu aktivieren  
[GitHub - discourse/discourse-oauth2-basic: A basic OAuth2 plugin for use with Discourse · GitHub](https://github.com/discourse/discourse-oauth2-basic)

2. Erstellen Sie eine Anwendung auf Mastodon

> Anwendungsname: Discourse Login  
> Anwendungswebsite: https://\<YOUR\_DISCOURSE\>/auth/oauth2\_basic/callback  
> Redirect-URI: https://\<YOUR\_DISCOURSE\>/auth/oauth2\_basic/callback

1. Richten Sie das OAuth2-Plugin in Discourse ein

> oauth2 client id: Ihr Mastodon-App-Client-Schlüssel  
> oauth2 client secret: Ihr Mastodon-App-Client-Geheimnis  
> oauth2 authorize url: https://\<YOUR\_MASTODON\>/oauth/authorize  
> oauth2 token url: https://\<YOUR\_MASTODON\>/oauth/token  
> oauth2 user json url: https://\<YOUR\_MASTODON\>/api/v1/accounts/verify\_credentials  
> oauth2 json user id path: id  
> oauth2 json username path: username  
> oauth2 json name path: display\_name  
> oauth2 json avatar path: avatar

Verwandter Thread:

> [@Discourse OAuth2 Basic](https://meta.discourse.org/t/oauth2-basic-support/33879):
>
> discourse2Summary Discourse OAuth2 Basic supports basic OAuth2 providers, assuming they have a JSON API endpoint where user details can be retrieved by token.open_bookInstall Guide This plugin is bundled with Discourse core. There is no need to install the plugin separately. Features This plugin allows you to use a basic OAuth2 provider as authentication for Discourse. It should work with many providers, with the caveat that they must provide a JSON endpoint for retri…

> [@Configure sign up and log in with Auth0 using the OAuth2 Basic Plugin](https://meta.discourse.org/t/how-to-use-auth0-with-the-oauth2-basic-plugin/64633):
>
> If you are using [Auth0](https://auth0.com/) as your identity provider this guide will show you how to setup authentication using the [Discourse OAuth2 Basic Plugin](https://meta.discourse.org/t/oauth2-basic-support/33879). Initial Steps Create an Auth0 account if you don’t already have one The [Discourse OAuth2 Basic Plugin](https://meta.discourse.org/t/oauth2-basic-support/33879) ships pre-installed with Discourse. If you are self-hosted, ensure the plugin is enabled. For [hosted plans](https://www.discourse.org/pricing), the plugin is available on Business tier and above. Configure Auth0 Applications → Create Application Give your client a name like “Discourse…

---

_[View the full topic](https://meta.discourse.org/t/login-on-discourse-using-mastodon-credentials/91445)._
