# Add Discord-based authentication (or at least support it using Generic OAuth)

**URL:** <https://community.zammad.org/t/add-discord-based-authentication-or-at-least-support-it-using-generic-oauth/4669>\
**Category:** Technical assistance\
**Created:** [May 26, 2020, 5:11pm UTC](https://community.zammad.org/t/add-discord-based-authentication-or-at-least-support-it-using-generic-oauth/4669 "2020-05-26T17:11:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ttimpe](https://community.zammad.org/user_avatar/community.zammad.org/ttimpe/32/2877_2.png) [@ttimpe](https://community.zammad.org/u/ttimpe)\
**Post date:** [May 26, 2020, 5:11pm UTC](https://community.zammad.org/t/add-discord-based-authentication-or-at-least-support-it-using-generic-oauth/4669/1 "2020-05-26T17:11:11Z")

</div>

Hello everybody,

we are currently evaluating using Zammad as our support system for our Discord guild and I’m trying to use Discord as an OAuth provider for Zammad.

I have set the settings as follows:

```
Site: https://discord.com/api/
Authorize_URL: /oauth2/authorize?scope=identify email&response_type=token
Token_URL: /oauth2/token

```

However when trying to log in, I get an error (422) `invalid_credentials`.

Also, even after explicitly setting the response\_type to token in the authorize URL, Zammad still performs a request with the type code.

What does Zammad expect as a response from an authorization provider?

Also, as Discord has gained a lot of popularity in the last years, it may be a worthwhile option to integrate it before talking about generally removing generic OAuth.

Thank you

Tobias Timpe

---

<div class="post-metadata">

**Author:** ![MrGeneration](https://community.zammad.org/user_avatar/community.zammad.org/mrgeneration/32/9260_2.png) [@MrGeneration](https://community.zammad.org/u/MrGeneration)\
**Post date:** [May 29, 2020, 8:44am UTC](https://community.zammad.org/t/add-discord-based-authentication-or-at-least-support-it-using-generic-oauth/4669/2 "2020-05-29T08:44:35Z")

</div>

Please note that the generic oAuth2 is out of support, is not working and never has.  
We’ll be removing oAuth2 (generic) in future versions of Zammad.

See: [https://github.com/zammad/zammad/issues/2951](https://github.com/zammad/zammad/issues/2951)

Edit: You can at any time create a post in the feature request category for voting

---

<div class="post-metadata">

**Author:** ![system](https://community.zammad.org/uploads/default/original/1X/5c5afaea2d23f811dbec33cd4edb02fa29d3262f.png) [@system](https://community.zammad.org/u/system)\
**Post date:** [September 26, 2020, 8:44am UTC](https://community.zammad.org/t/add-discord-based-authentication-or-at-least-support-it-using-generic-oauth/4669/3 "2020-09-26T08:44:37Z")

</div>

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.
