Skip to content

Commit

Permalink
docs: fix client_secret_basic special characters encoding example
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Jan 18, 2024
1 parent 3e26073 commit 73baae1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/README.md
Expand Up @@ -3510,10 +3510,10 @@ const client_secret = 'some secure & non-standard secret';

// After formencoding these two tokens
const encoded_id = 'an%3Aidentifier';
const encoded_secret = 'some+secure+%26+non-standard+secret';
const encoded_secret = 'some+secure+%26+non%2Dstandard+secret';

// Basic auth header format Authorization: Basic base64(encoded_id + ':' + encoded_secret)
// Authorization: Basic YW4lM0FpZGVudGlmaWVyOnNvbWUrc2VjdXJlKyUyNitub24tc3RhbmRhcmQrc2VjcmV0
// Authorization: Basic YW4lM0FpZGVudGlmaWVyOnNvbWUrc2VjdXJlKyUyNitub24lMkRzdGFuZGFyZCtzZWNyZXQ=
```
So essentially, your client is not submitting the client auth in a conform way and you should fix
Expand Down

0 comments on commit 73baae1

Please sign in to comment.