You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using PCKE OAuth flow (i.e. no client secret available) to create a client-only web page I ran into the following issue; rather than being able to do an expected:
It seems that the library does not include the client_id in the form body; when supplied in credentials it just uses it in the headers rather than the body:
Side note, really cool and useful library! Well documented and works really nicely!
I am happy to implement this one myself with some guidance on whether this actually merits a change or not, but I was not sure because I do not know so much about OAuth.
Using PCKE OAuth flow (i.e. no client secret available) to create a client-only web page I ran into the following issue; rather than being able to do an expected:
or
I had to use the more custom
makeTokenRequestWith
in order to form the proper request:It seems that the library does not include the
client_id
in the form body; when supplied incredentials
it just uses it in the headers rather than the body:It seems like this
client_id
in the refresh token request is NOT mentioned in RFC: https://datatracker.ietf.org/doc/html/rfc6749#section-6So maybe it is just strange that spotify auth server is requesting it: https://developer.spotify.com/documentation/web-api/tutorials/refreshing-tokens
Small nit as well, this documentation was a bit confusing
elm-oauth2/src/OAuth/Refresh.elm
Line 56 in ef6a7bf
I think this is supposed to be something more like "the refresh token issued by the authorization provider"
The text was updated successfully, but these errors were encountered: