asciisd / zoho

Zoho package for Laravel
36 stars 36 forks source link

Using token in auto scaling group #40

Open jbhagilishealth opened 2 years ago

jbhagilishealth commented 2 years ago

Hi

I am wondering if any one can point me in the right direction.

We are adding in an auto scaling group using AWS, but need to make sure the token can be used across multiple servers or on any new server that are spun up automatically.

If the token is stored in a central repo or a central location, will the token work on different instances?

rogerio-pereira commented 2 years ago

I'm facing a similar problem. Reading your ticket maybe leaded me to right track I'll test and let you know

rogerio-pereira commented 2 years ago

@jbhagilishealth Hey man, I`m back. Thanks a lot you cleared my vision, pointed me a direction and i was able to do it.

If anyone needs help on that

Step 1 Before installing the package. Make sure all you .env files has the same record for APP_KEY= This is important, if you have different APP_KEY in your instances you'll receive a error unserialize(): Error at offset

Step 2 do the regular installation in your first instance

Step 3 Copy the zcrm_oauthtokens.txt to same path in other instances <application_folder>/storage/apps/zoho/oauth/tokens/zcrm_oauthtokens.txt