Skip to main content

Hey Folks,

 

I am getting the following error when trying to access `v1/authorize` endpoint:

```

{
"error": "invalid_request",
"error_description": "\\"code_challenge\\" must be a valid url-encoding of the the sha256 of the code_verifier variable generated (length 43, alphanumeric characters, \\"_\\", or \\"-\\"",
"state": "airtablebardello"
}

```

The value of the code_challenge that I am sending to the server in that particular instance is "

YjgwOGJjYTk5MGJjZTdjY2FjYjdkYmJjZDI1YzkxMGI5MDEwZDUxMzdlYjdhYmUwZDI0NWI0MWM5ODAzYjJiNw

"

Here is the full request modulo the client_id and redirect_uri: 

https://airtable.com/oauth2/v1/authorize?code_challenge_method=S256&state=airtablebardello&code_challenge=YjgwOGJjYTk5MGJjZTdjY2FjYjdkYmJjZDI1YzkxMGI5MDEwZDUxMzdlYjdhYmUwZDI0NWI0MWM5ODAzYjJiNw&client_id=xxx&response_type=code&redirect_uri=xxx&scope=data.records%3Aread+data.records%3Awrite+schema.bases%3Aread+schema.bases%3Awrite


Spent quite a while but still couldn't figure out what am I doing wrong 😕. I would appreciate any help.

Not gonna try to implement unless airtable team create a video on youtube on how to implement it. 


Reply