Skip to content
This repository was archived by the owner on Oct 25, 2023. It is now read-only.
This repository was archived by the owner on Oct 25, 2023. It is now read-only.

Grant type None is not supported #15

@TheCherry

Description

@TheCherry

Python 3.8.3
aiohttp 3.7.4.post0
aiohttp-oauth2 0.0.5

If I try to use aiohttp-oauth2 with discord I get this error:
{"error": "unsupported_grant_type", "error_description": "Grant type None is not supported"}

This is my Code:

    app.add_subapp(
        "/auth/discord/",
        oauth2_app(
            client_id=00000000000000000000000000000,
            client_secret="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            authorize_url="https://discord.com/api/oauth2/authorize?client_id=0000000000&redirect_uri=http%3A%2F%DOMAIN.DE%3A8080%2Fdiscord%2Fcallback&response_type=code&scope=identify%20email%20connections%20guilds",
            token_url="https://discordapp.com/api/v6/oauth2/token",
            scopes=['identify']
        ),
    )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions