question

EdBou avatar image
EdBou asked EdBou commented

Multiple Auth Requests - Python w/ JWT Auth

Still new developing with this platform. I am running a python script that fetches an access token that is stored in our system and used by other processes to access information. The access token is generated using the jwt auth flow.

Why will there sometimes be multiple auth requests listed in the integration API call history done in a short amount of time. Only one process calls this app and the token is generated every 15 mins.

Are there other processes behind the scene that generate bearer tokens that could explain this?

Thanks!

authentication
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Phong Vu avatar image
Phong Vu answered EdBou commented

Any API call logged in the API call history must be called by your app or any app that uses the same app client id and client secret.

You should double check your code to make sure that it's not calling the /auth in a loop.

You said that your Python script fetches an access token stored in your system, how did you get the access token and store it there? Check that part.

You also said that only one process calls this app ..., but it seems that you have 2 processes, one gets the access token and store in your system, and one fetches the access token and call other APIs?

1 comment
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

EdBou avatar image EdBou commented ·

Hey,

Thanks for taking the time to answer.

The issue was with the server on which the code was running. This has been solved.

0 Likes 0 ·

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys