FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
213 views 3 comments
by

I am trying authorize endpoint for RMS API with document .
 I tried with following URL for authorize endpoint.

https://rms.teltonika-networks.com/account/authorize?client_id=9251e430-6216-4e88-82f9-a006a985d33c&redirect_uri=http%3a%2f%2flocalhost%3a8080%2f&response_type=code&state=Y2M1NDFkZTdkMjA2NGQ5MTZhZWY2OTA5ODI1MDQzNTg2MDc4MzI2MWMzNWU4ZDViZDEzNjhiMmJiMTI3YzdmMAo&code_challenge=PiBmgPPbp4HNo9TmNwkuKOXvtpMxBjoyzkic4lxaYeg&scope=

After calling this /account/authorize/, browser is redirected and showed AUTHORIZE dialog page with "https".
Then I tapped "AUTHORIZE" button and the page is going to "http" page.

http://rms.teltonika-networks.com/account

Then the web browser (chrome) shows error in console as following.

​​​​Refused to send form data to 'http://rms.teltonika-networks.com/' because it violates the following Content Security Policy directive: "form-action 'self' *.demorms.teltonika-networks.com".

How can I get authorized code with OAuth2.0 ?

I think I am using a trial license for RUT240.

1 Answer

0 votes
by anonymous
Hello,

Thank you for pointing this out. I was able to replicate the issue and passed this information to the R&D team. I will come back to you as soon as get any comments.

Kind regards.
by anonymous

Good news, issue of this query is fixed. Please test and provide feedback.

BR.

by anonymous

Thank you. I can get access_token and refresh_token.

by anonymous
Glad to help.

Have a nice day.