
Comment Post Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Feb 19, 2023 04:35 PM
I am going to integrate the OAuth2 authentication with my existing apps.
The first step is to send a GET request to https://airtable.com/oauth2/v1/authorize .
But I failed on the first step.
Here is the error:
Below are the parameters for the GET request:
- client_id = //not exposed here
- client_secret = //not exposed here
- redirect_uri = http://localhost/
- response_type=code
- scope=data.records:read data.records:write
- state=sadjfhkjDFHKJShk23489sldfhjksdkssdffsf // random text
- code_challenge_method=S256
- code_challenge=MTA4ZDJhYTQ1YTVhMGE3M2MwNTc3NmJiMzYyZTdhNDc3ZjgyNGUzN2U3NGZhYzA0ZGQ1NDAwYTE5OGM0OTMzYw
// where the code verifier is SLAJFlksdlksfjljasldjflasjflasjflasfjisfjjd
I already encoded the code verifier with SHA256 and then base64 URL. So I do not know what wrong it is.
Can anyone help?
1 Reply 1

Comment Post Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Feb 19, 2023 04:40 PM
I found that the Code_Challenge was generated incorrectly.
I fixed it and it is ok now
