Skip to content

Device Consent Page "Cancel" still logs in the user #2179

@c-a-m

Description

@c-a-m

Describe the bug
Once I've granted access to a client id via device authorization grant to one device, any furthur devices using the same client id will still be approved even when the consent page is canceled.

To Reproduce
Steps to reproduce the behavior.

  1. Trigger a device authentication with client=123
  2. When prompted for Device Consent,
  3. Specify the granted scopes and click "Approve"
  4. Trigger a device authentication with client=123 but on a new device.
  5. When prompted for Device Consent, the specified granted scope is greyed out, but both Buttons "Approve" and Cancel" appear. Click "Cancel"
  6. The second device still gets an access token

Expected behavior
I was hoping that the second device would get a "access_denied"

I demoed this behavior to @jgrandja at spring one yesterday. Thanks Joe

Workaround
I've been able to get my acceptance tests to get the correct behavior, so I believe that with a custom consent page I can get the behavior expected by setting an empty scope parameter.

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