Reply
Member
Posts: 4
Registered: ‎01-14-2021
Accepted Solution

Sporadic connections for OAuth testing

I'm trying to work through the OAuth process with redirecting to the merchant mentioned here. https://developer.authorize.net/api/reference/features/oauth.html#Redirecting_the_Merchant
 
I have a test partner account and have the application configured.
 
When I put this URL (my-client-id is replaced with my real value) into the browser

https://logintest.authorize.net/?sub=oauth&client_id=[my-client-id]&redirect_uri=https%3a%2f%2fgoogl...

 
I'm asked to log into a merchant account. Great!! I log into my sandbox account and hit 'Allow'
 
I can get back 3 different results with the same URL
 
The last one, which is the one I want, only returns maybe 1 out of every 10 times.
 
This makes it very tough to test/code mainly because I'm not sure if my request is correct or not.
 
I'm obviously using google.com & the hardcoded 'state' for testing purposes.
 
Has anyone else run into this or know what is going on?
 
Thanks

Accepted Solutions
Solution
Accepted by topic author MikeBreadwinner
‎01-25-2021 07:41 AM
Member
Posts: 4
Registered: ‎01-14-2021

Re: Sporadic connections for OAuth testing

The sporadic nature seemed to disipate after a while but I did notice that Auth.Net does not like double quotes in the 'state' attribute.  It will blow up every time with the ?error=

View solution in original post


All Replies
Solution
Accepted by topic author MikeBreadwinner
‎01-25-2021 07:41 AM
Member
Posts: 4
Registered: ‎01-14-2021

Re: Sporadic connections for OAuth testing

The sporadic nature seemed to disipate after a while but I did notice that Auth.Net does not like double quotes in the 'state' attribute.  It will blow up every time with the ?error=