Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
https://www.rfc-editor.org/rfc/rfc6749.html#section-4.1.2.1
Comments
Comment #2
bojan_dev CreditAttribution: bojan_dev commentedThis is already addressed in 6.0, here is another example were this pops up again: https://www.drupal.org/project/simple_oauth/issues/3225751#comment-14791779
I think this involves some refactoring, we should avoid architecture changes in 5.2.
Comment #3
bradjones1Thanks for the pointer. By architecture change, you mean a change to the shape of the error response?
Comment #4
bojan_dev CreditAttribution: bojan_dev commentedActually the OAuthServer from the league lib pretty much handles the shape of the error response and this varies based on the OAuth2 spec. What I meant with architecture changes; the oauth endpoints responses (including redirects) should be done by the League lib, this is currently not the case in simple_oauth:5.2 and involves refactoring.
Comment #5
bradjones1Ah OK... Yeah I am not talking about touching the redirects, just the shape of the response when there is an exception thrown during processing.