cancel
Showing results for 
Search instead for 
Did you mean: 

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
1 ACCEPTED SOLUTION

Accepted Solutions

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

2 REPLIES 2

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=


@MikeBreadwinner friday night funkin wrote:

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=


That is very helpful! thank you