Skip to content

Using client credentials flow with scopes other than 'identify' on an app assigned to a team returns HTTP 400 #2644

@czaccardelli

Description

@czaccardelli

Description

When an app is assigned to a team and tries to specify scopes other than 'identify' in the OAuth2 Client Credentials flow when requesting a token, HTTP 400 is returned with the following body:

{"error": "invalid_scope", "error_description": "The requested scope is invalid, unknown, or malformed."}

Steps to Reproduce

Create an app. Assign it to a team. Using the client credentials flow using the client_id and client_secret, try to request a token while specifying scopes other than/in addition to 'identify'.

Expected Behavior

A token is granted.

Current Behavior

HTTP 400 with the following body is returned:

{"error": "invalid_scope", "error_description": "The requested scope is invalid, unknown, or malformed."}

Screenshots/Videos

N/A

Client and System Information

Tested using HttpClient in C# .NET 5.0. Windows 10 Build 19041

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions