Data policy's check for redirection doesn't take into account simple_oauth

Created on 3 April 2024, 3 months ago
Updated 19 April 2024, 2 months ago

Problem/Motivation

Currently, the RedirectSubscriber redirects users to the data policy for all scenario's, regardless if there is no consent to give or if the user already gave consent. There is no way for the oAuth flow to determine whether or not the user already has given consent, as there is no access to perform the entity queries.

Proposed resolution

For now we're going to skip the redirect if the

So one thing we could do here, since we have access to the current user is check if current user is an instance of Drupal\simple_oauth\Authentication\TokenAuthUserInterface because it tells us that a non-Drupal UI application is making requests and that that application should probably decide whether the redirect the user, if that is the case we can skip it.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands ronaldtebrake

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024