Open API Authorized failed error

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.

Open API Authorized failed error

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
Open API Authorized failed error
Open API Authorized failed error
2024-06-14 17:48:09 - last edited 2024-06-18 02:37:40
Tags: #API
Model: OC200  
Hardware Version: V1
Firmware Version: 1.29.4 Build 20240304 Rel.54362

I have a problem on the open api authorization.

i created an open api in the platform integration.
I tried to login
Logging in is successful it says "Open API TP Cloud Log in successfully" and it provided csrfToken and sessionID
Now the problem here is on obtaining the authorization code. Ive followed the documentation and it gave me an error all the time
"Open API Authorized failed, please check whether the input parameters are legal.","errorCode":-44116"
this is the request sample from the documentation: Omada Open API (tplinkcloud.com) 
 

https://localhost:8043/openapi/authorize/code?client_id=29f2fdbeb5a84d50b9b1cdd08cd1a3ff&omadac_id=de382a0e78f4deb681f3128c3e75dbd1&response_type=code" -H 'content-type:application/json' -H 'Csrf-Token:ae6b935c92cf4b1b9f3eb852e20ed2b8' -H 'Cookie:TPOMADA_SESSIONID=9cb86bf3a99e48a59e4f3bb464a3c443' -X POST -i -k --insecure

I already changed and checked everything, from clientID, omadacID, csrfToken and sessionID, all were correct
and still gives me the same error.

I also tried to use the client mode in the open api platform and still failed to retrieve the authorization code. 

  0      
  0      
#1
Options
1 Accepted Solution
Re:Open API Authorized failed error-Solution
2024-06-17 14:42:18 - last edited 2024-06-18 02:37:40

  @Fae 

I already solved this one. Ive created a new post API problem - Business Community (tp-link.com)
with a new problem. I will mark this as solved

Recommended Solution
  1  
  1  
#3
Options
2 Reply
Re:Open API Authorized failed error
2024-06-17 05:48:18

Hi  @wickedcool13 

 

You may check the Csrf-Token and Cookie, make sure they are in the correct format like: 

Csrf-Token:XXX

Cookie:TPOMADA_SESSIONID=XXX

 

If the problem still the same, please provide us details configuration on your controller platform integration>openapi;

And the Request you are actually using. 

wickedcool13 wrote

I have a problem on the open api authorization.

i created an open api in the platform integration.
I tried to login
Logging in is successful it says "Open API TP Cloud Log in successfully" and it provided csrfToken and sessionID
Now the problem here is on obtaining the authorization code. Ive followed the documentation and it gave me an error all the time
"Open API Authorized failed, please check whether the input parameters are legal.","errorCode":-44116"
this is the request sample from the documentation: Omada Open API (tplinkcloud.com) 
 

https://localhost:8043/openapi/authorize/code?client_id=29f2fdbeb5a84d50b9b1cdd08cd1a3ff&omadac_id=de382a0e78f4deb681f3128c3e75dbd1&response_type=code" -H 'content-type:application/json' -H 'Csrf-Token:ae6b935c92cf4b1b9f3eb852e20ed2b8' -H 'Cookie:TPOMADA_SESSIONID=9cb86bf3a99e48a59e4f3bb464a3c443' -X POST -i -k --insecure

I already changed and checked everything, from clientID, omadacID, csrfToken and sessionID, all were correct
and still gives me the same error.

I also tried to use the client mode in the open api platform and still failed to retrieve the authorization code. 

 

>> Omada EAP Firmware Trial Available Here << *Try filtering posts on each forum by Label of [Early Access]*
  0  
  0  
#2
Options
Re:Open API Authorized failed error-Solution
2024-06-17 14:42:18 - last edited 2024-06-18 02:37:40

  @Fae 

I already solved this one. Ive created a new post API problem - Business Community (tp-link.com)
with a new problem. I will mark this as solved

Recommended Solution
  1  
  1  
#3
Options

Information

Helpful: 0

Views: 341

Replies: 2

Tags

Related Articles