Skip to content

Commit 73baae1

Browse files
committed
docs: fix client_secret_basic special characters encoding example
1 parent 3e26073 commit 73baae1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3510,10 +3510,10 @@ const client_secret = 'some secure & non-standard secret';
35103510

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

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

0 commit comments

Comments
 (0)