Closed barryf closed 3 years ago
@jamietanna Does this new version work correctly with your new IndieAuth server? It should support PKCE.
I'm seeing a fail with 400 received from token endpoint.
on redirect with code
, so possibly not - I'll have a look my side, is there anything you can check in your logs to see what went wrong?
Looks like I'm not happy with the PKCE :thinking:
Looks like the challenge you're sending has Base64 padding =
s which aren't allowed - you'll need to strip them before you send them, otherwise servers will reject it
This is how I construct the code_challenge
in Ruby. It seems to follow the spec's method, although I may need to do some more reading.
code_challenge = Base64.urlsafe_encode64(
Digest::SHA256.hexdigest(code_verifier)
)
I had this as well on the server side, I think when you compute that, you need to gsub(/=/, '')
Ah, good spot re: the "=" added. I'll strip them. Thanks :+1:
Closes #54