How to implement Oauth2 without User consent (only for backend use)

How to implement Oauth2 without User consent (only for backend use)

Hi, how are you?

I'm trying to implement zoho subscriptions api to my server (node js) to read / write new products, plans, etc.

But in my flow, i don't need any user consent... and i have some questions about the implementation.

1) I created a self client appication in zoho developers console, so i could generate a ten minutes valid "code" to exchange for a new token. And when i have a one hour token i need to implement some logic to refresh this token every 1 hour (because the access token is invalidated).

how i can implement this logic?

I need to save the first access token (obtained by manually generated code) in my server code? and then, every time that i want to make a request to zoho subscriptions validate if the token is expired to make a new access token with the refresh token?

do you have any examples of that (maybe in other languages).

thanks for your help!





      • Topic Participants

      • mike

      • Sticky Posts

      • How to Add Users to your Organization in ZohoMail?

        A better clarity so you can create other users to start using Zoho Mail. You can directly Add Users from the Control Panel to your Organization. You can invite users with the existing email address. If the person (user) already uses ZohoCRM, then you can import users from Zoho CRM. You can also import them using a .csv file. (if you are planning to add them in Bulk)  In this topic, We will be discussing on how to Add and Invite users only.  The Import options are self explanatory. ____________________________________________________________________________________________________________