diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-08 00:10:59 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-08 00:10:59 +0300 |
commit | f59e4c38bdd4145900f02f7268997c6c61458a32 (patch) | |
tree | 8ebe3c6bbbc68f1cf5d3490543b61e062d8e2ec5 /doc/api/oauth2.md | |
parent | 7b61371e55a79bffecceb80221a8a41e34fb9559 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/oauth2.md')
-rw-r--r-- | doc/api/oauth2.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/oauth2.md b/doc/api/oauth2.md index 02904f2be5b..4b3f0e5668b 100644 --- a/doc/api/oauth2.md +++ b/doc/api/oauth2.md @@ -84,8 +84,8 @@ Before starting the flow, generate the `STATE`, the `CODE_VERIFIER` and the `COD `CODE_VERIFIER` - The SHA256 hash must be in binary format before encoding. - In Ruby, you can set that up with `Base64.urlsafe_encode64(Digest::SHA256.digest(CODE_VERIFIER), padding: false)`. - - For reference, a `CODE_VERIFIER` string of `ks02i3jdikdo2k0dkfodf3m39rjfjsdk0wk349rj3jrhf` when hashed - and encoded using the Ruby snippet above produces a `CODE_CHALLENGE` string + - For reference, a `CODE_VERIFIER` string of `ks02i3jdikdo2k0dkfodf3m39rjfjsdk0wk349rj3jrhf` when hashed + and encoded using the Ruby snippet above produces a `CODE_CHALLENGE` string of `2i0WFA-0AerkjQm4X4oDEhqA17QIAKNjXpagHBXmO_U`. 1. Request authorization code. To do that, you should redirect the user to the @@ -138,7 +138,7 @@ Before starting the flow, generate the `STATE`, the `CODE_VERIFIER` and the `COD ``` Example response: - + ```json { "access_token": "c97d1fe52119f38c7f67f0a14db68d60caa35ddc86fd12401718b649dcfa9c68", |