Hi All, I have an integration record on my sandbo...
# integrations
w
Hi All, I have an integration record on my sandbox that was there before a refresh, and I'm getting OAuth login failures. Is it because the consumer key and secret got changed during the sandbox refresh? I've tried the consumer key and secret from sandbox (the originals) and from production (the current ones that work in production). So I thought about resetting the consumer key and secret, but can't figure it out. The help says to edit the integration and click the Reset Credentials button, but I don't seem to have that button.
d
After a refresh I always have to go to my account, add the token role back to it, then generate a new access token.
j
yeah you will need to generate a new token. After doing a sandbox refresh, the consumer key and consumer secret will be the same as production. I think it's worth regenerating so they are different between prod and sandbox, but I guess it doesn't matter as long as you're using tokens
w
@Jon Kears I did generate a new token, and I'm still getting login failures. I've tried the consumer key and secret from both production and sandbox.
I don't have the option in sandbox to regenerate consumer key and secret on the integration record.
So I recreated the integration and added new access tokens for it, but I'm still getting login failures... I don't have this problem in production.
I figured it out, I think. I'm running middleware on node which has the access tokens in a config file, but the old config file is cached until the node process is re-started.
Yes that was it! So I did need to make a new access token, but the production consumer key and secret probably would have worked if I cleared the node cache...
d
Good to know. Production consumer key and secret never seem to change, its just the access token that doesnt get brought over in the refresh.