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
196 views 0 comments
by anonymous

Hi,

I'm using the RMS OAuth integration in an application I'm developing (Application type: Confidential). When I open the rms authorize url (that I populate with my oauth configuration), I get the authorize page and everything looks correct, but clicking the authorize button does not do anything.

Looking at the developers console I see the following error:

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

When I refresh the auth page page it does execute the redirect to my redirect url and I can successfully complete the OAuth process. But it should work seamlessly by clicking the button.

Any ideas what this could be? It does not seem to be something I can influence with the url as the Content Security Policy directive is part of the rms response header.

Auth url: https://rms.teltonika-networks.com/account/authorize?response_type=code&client_id=$CLIENT_ID&redirect_uri=$REDIRECT_URL&scope=users%3Aread+devices%3Aread&state=$RANDOM_STATE

1 Answer

0 votes
by

Hi,

Is this issue happening in every Authorization request?

It is hard to point out the specific issue from your application side, but you could consider this:

  • If authorization process being handled in a web browser, you could erase cache and try again or test it in a different browser.
  • Consider erasing the application in the RMS platform and create it again in every major change.

Regards

Anthony