Skip to content

Improve OAuth2 Device Authorization consent handling for missing scopes #19256

@therepanic

Description

@therepanic

There are two related issues in the OAuth2 Device Authorization flow when no scopes are requested.

The first issue is that when a device_authorization request is made without a scope, everything works fine, but when both authorities and scope are empty, an error is thrown that does not comply with Section 3.3 of RFC-6749. The second issue is that the error itself is reported as a client_id error rather than a scope error. Therefore, we need to resolve these two issues.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions