Похожие чаты

I am integrating Zoho Oauth2 support in Appwrite (https://github.com/appwrite/appwrite/). I am

getting Error 400 Missing ID from OAuth2 provider (https://github.com/appwrite/appwrite/blob/0.7.x/app/controllers/api/account.php#L475) and after I refresh the page error changes to Error 500 Failed to obtain access token (https://github.com/appwrite/appwrite/blob/0.7.x/app/controllers/api/account.php#L465)

tried temp token, access token, and API endpoint individually using postman and it works (gives required JSON data back)

appwrite logs have the following error:
[Error] Method: GET
[Error] URL: /v1/account/sessions/oauth2/:provider/redirect
[Error] Type: Utopia\Exception
[Error] Message: Missing ID from OAuth2 provider
[Error] File: /usr/src/code/app/controllers/api/account.php
[Error] Line: 475

(after browser refresh)

[Error] Method: GET
[Error] URL: /v1/account/sessions/oauth2/:provider/redirect
[Error] Type: Utopia\Exception
[Error] Message: Failed to obtain access token
[Error] File: /usr/src/code/app/controllers/api/account.php
[Error] Line: 465

request chain & code: https://del.dog/zoho-oauth.txt (Zoho.php placed in this directory : https://github.com/appwrite/appwrite/tree/0.7.x/src/Appwrite/Auth/OAuth2)

redirect URI is added in the Zoho API console. I tried several things (modifying headers, params, etc.) but none worked.

One more thing I noticed is from temp_token(or 'code') which I get from Zoho to appwrite callback after getLoginUrl(), when I use that token from the postman to get access token I get error "invalid_token" with 200 OK while I get access_token refresh_token when I use 'code' obtained directly making the request to Zoho endpoint.

please can anyone help me debug this?

1 ответов

12 просмотров
Cheap-Gems Автор вопроса

any hints on how to debug?

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта