Oauth2 Auth code flow always returns canceled
Posted: Fri Jul 28, 2023 10:16 pm
Hey everyone.
I have been bashing my head against this for a few days and have finally given up and turned to the forums for help.
I am trying to auth a flutter application with simpro using the flutter oauth2_client package https://pub.dev/packages/oauth2_client. All appears to be working, I get taken to the login, I login with simpro credentials and press yes, I am then redirected back to my application but I receive a 404 error which traces back to an error message that says:
errorCode: CANCELED
errorMessage: User canceled login
I get redirected back to my app so it seems all of the flow is working but no matter what I do the response is always user canceled.
Has anyone seen this before or can point me in the right direction? at this point my next step is to write the oauth2 flow myself so I can debug it further but before I do that I thought I would try my luck on here.
Thanks in advance!
Adam
I have been bashing my head against this for a few days and have finally given up and turned to the forums for help.
I am trying to auth a flutter application with simpro using the flutter oauth2_client package https://pub.dev/packages/oauth2_client. All appears to be working, I get taken to the login, I login with simpro credentials and press yes, I am then redirected back to my application but I receive a 404 error which traces back to an error message that says:
errorCode: CANCELED
errorMessage: User canceled login
I get redirected back to my app so it seems all of the flow is working but no matter what I do the response is always user canceled.
Has anyone seen this before or can point me in the right direction? at this point my next step is to write the oauth2 flow myself so I can debug it further but before I do that I thought I would try my luck on here.
Thanks in advance!
Adam