Open ElUtku opened 10 months ago
Since Steve Maguire's provider hasn't - unless I have missed it - been updated since 2015-16 and the RFC for 'pixie' was only issued in 2015, it is possible that this provider does not support it. Pixie support for Ben Ramsey's TheLeague's oauth2-client on which the Maguire provider depends was only added in April this year (see its Generic provider). I see from GitHub email that you have now edited the 'pkceMethod' => Microsoft to 'pkceMethod' => GenericProvider, but will you then need to instantiate GenericProvider (as well as Maguire'e provider)? If so, will you then get conflicts between any other public methods or properties in these two? You may need to copy the relevant pixie code from Generic and Abstract providers and create a trait, because pkceMethod in GenericProvider has 'private' visibility (but - as I guess you will have seen - there is a PKCE setter and a getter in AbstractProvider)
And a rather obvious point: I haven't checked the Generic or Abstract provider code, but does setting 'pkceMethod' when instantiating the provider set the PKCE method AND add the codeChallenge and codeChallengeMethod to the authorization endpoint URL or merely tell the provider that you will be using PKCE?
Hi,
I'm trying to implement the method but i get the error "AADSTS9002325: Proof Key for Code Exchange is required for cross-origin authorization code redemption." and i don't caught what is wrong...
Edit: I think that the problem is that
'pkceMethod' => Microsoft::PKCE_METHOD_S256
is not allowed in this adapter, so it isn't send with the petition.