OPEN API 2.2.1.1 redirect URL not specified documentation...

OPEN API 2.2.1.1 redirect URL not specified documentation...

OPEN API 2.2.1.1 redirect URL not specified documentation...
OPEN API 2.2.1.1 redirect URL not specified documentation...
3 weeks ago - last edited 2 weeks ago
Model: OC300  
Hardware Version:
Firmware Version: 5.15.24.17

omada version - 5.15.24.17 

 

I am trying to follow the open-api 2.2.1 Login Authentication & Obtain Authorization Code flow.

 

When i make this request.. with my data..

curl "https://localhost:8043/openapi/authorize/login?client_id=38f2d1b616434374b3f3215246f39940&omadac_id=beed48c7a2b0ea97c9698408843119f3" -H 'content-type:application/json' -d '{"username":"admin","password":"tplink123"}' -X POST -i -k --insecure

 

i am getting this error.

An unexpected error occurred: Call to /openapi/authorize/login failed: API Error -44106: The Client Id Or Client Secret is Invalid.

 

Is the documentation incorrect? 

 

 

When i create an authorization code mode in the controller it does give me client id and a client secrete. but the docs don't have the secret as part of the curl command..

 

 

Using the WEB-API i am able to login and get results back.. but i want to only use the open-api flow for my lib. 

 

Thoughts.. Docs out of date?

 

Thanks

 

  0      
  0      
#1
Options
1 Accepted Solution
Re:OPEN API 2.2.1.1 redirect URL not specified documentation...-Solution
3 weeks ago - last edited 2 weeks ago

Hi  @justacoder 

 

I believe you should choose Client Mode. Please have a try.

 

Recommended Solution
  0  
  0  
#7
Options
6 Reply
Re:OPEN API 2.2.1.1 redirect URL not specified documentation...
3 weeks ago - last edited 3 weeks ago

Hi  @justacoder 

 

Thanks for posting here.

 

To locate the reason, please share the screenshots showing the detailed attributes of the API in the controller.

 

 

 

  0  
  0  
#2
Options
Re:OPEN API 2.2.1.1 redirect URL not specified documentation...
3 weeks ago - last edited 3 weeks ago

  @Vincent-TP 

 

 

 

 

Here is the screen shot of my controller openapi settings..

 

This is a dev box not connected to the internet so.. dont care about the creds..

 

Thanks

  0  
  0  
#3
Options
Re:OPEN API 2.2.1.1 redirect URL not specified documentation...
3 weeks ago

  @Vincent-TP 

 

 

 

More screenshots..

 

Thanks

 

 

  0  
  0  
#4
Options
Re:OPEN API 2.2.1.1 redirect URL not specified documentation...
3 weeks ago
Sorry we can delete this post. i was passing omada_id param spelled incorrectly..
  0  
  0  
#5
Options
Re:OPEN API 2.2.1.1 redirect URL not specified documentation...
3 weeks ago
Sorry we can delete this post. i was passing omada_id param spelled incorrectly..
  0  
  0  
#6
Options
Re:OPEN API 2.2.1.1 redirect URL not specified documentation...-Solution
3 weeks ago - last edited 2 weeks ago

Hi  @justacoder 

 

I believe you should choose Client Mode. Please have a try.

 

Recommended Solution
  0  
  0  
#7
Options