# “Unable to issue redirect for OAuth 2.0 transaction” using a database connection (but Social Provider works)

**URL:** <https://community.auth0.com/t/unable-to-issue-redirect-for-oauth-2-0-transaction-using-a-database-connection-but-social-provider-works/47665>\
**Category:** Get Help\
**Created:** [August 7, 2020, 5:20pm UTC](https://community.auth0.com/t/unable-to-issue-redirect-for-oauth-2-0-transaction-using-a-database-connection-but-social-provider-works/47665 "2020-08-07T17:20:17Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthewmcneely](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/matthewmcneely/32/13327_2.png) [@matthewmcneely](https://community.auth0.com/u/matthewmcneely)\
**Post date:** [August 7, 2020, 5:20pm UTC](https://community.auth0.com/t/unable-to-issue-redirect-for-oauth-2-0-transaction-using-a-database-connection-but-social-provider-works/47665/1 "2020-08-07T17:20:18Z")

</div>

SPA using VueJS. The social login/signup (via Google) works, but the database signup fails.

Logs:

```auto
{
  "date": "2020-08-07T16:59:55.828Z",
  "type": "f",
  "description": "Unable to issue redirect for OAuth 2.0 transaction",
  "connection_id": "",
  "client_id": "WpMthRCXFGP2Tsrbk6VRJjq2yhUYQ2WE",
  "client_name": "Revuud",
  "ip": "71.241.129.38",
  "user_agent": "Chrome 84.0.4147 / Mac OS X 10.15.5",
  "details": {
    "body": {
      "state": "g6Fo2SBnRnJDcXFMeWR0SzRPcjJTN0ptWk1FVmVOR3hPUk5rVqN0aWTZIDhDODZlOEJkZ1k4d193S1hpQVhOVGRid2JnOEFRNEZEo2NpZNkgV3BNdGhSQ1hGR1AyVHNyYms2VlJKanEyeWhVWVEyV0U",
      "audience": "https://dev-revuud.us.auth0.com/api/v2/",
      "scope": [],
      "action": "accept"
    },
    "qs": {},
    "error": {
      "message": "Unable to issue redirect for OAuth 2.0 transaction",
      "oauthError": "server_error",
      "type": "oauth-authorization"
    },
    "session_id": "6SvfsfJv2mZp61ECO2JpEX_z7C0rSqu4"
  },
  "hostname": "dev-revuud.us.auth0.com",
  "user_id": "auth0|5f2d888832cea3022114884f",
  "user_name": "matthew@example.io",
  "audience": "https://dev-revuud.us.auth0.com/api/v2/",
  "scope": [
    "openid",
    "profile",
    "email"
  ],
  "log_id": "90020200807165957584000617839962835810446817300297285634",
  "_id": "90020200807165957584000617839962835810446817300297285634",
  "isMobile": false
}

```

This is a test on localhost. The user is created, but this error is generated and the generic “Auth0 something went wrong” page is displayed.

---

<div class="post-metadata">

**Author:** ![sidharth.chaudhary](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sidharth.chaudhary/32/20686_2.png) [@sidharth.chaudhary](https://community.auth0.com/u/sidharth.chaudhary)\
**Post date:** [August 15, 2020, 6:19am UTC](https://community.auth0.com/t/unable-to-issue-redirect-for-oauth-2-0-transaction-using-a-database-connection-but-social-provider-works/47665/2 "2020-08-15T06:19:25Z")

</div>

Hey @matthewmcneely, Welcome to the Auth0 Community!

This error indicates most likely indicates some issue in the redirect\_uri in the initial /authorize issued  
by your application. The Authorization server failed to issue a redirect on that URL. Will you be able to check that on your side?

Please let me know if this helps.

Regards,  
Sid

---

<div class="post-metadata">

**Author:** ![skllpara](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/skllpara/32/16406_2.png) [@skllpara](https://community.auth0.com/u/skllpara)\
**Post date:** [August 24, 2020, 3:15am UTC](https://community.auth0.com/t/unable-to-issue-redirect-for-oauth-2-0-transaction-using-a-database-connection-but-social-provider-works/47665/3 "2020-08-24T03:15:49Z")

</div>

I’m having a similar issue, except my login was working about a day ago. Nothing with regards to login has changed so I am a little confused whats up (maybe a service outage?)

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [August 24, 2020, 9:05am UTC](https://community.auth0.com/t/unable-to-issue-redirect-for-oauth-2-0-transaction-using-a-database-connection-but-social-provider-works/47665/4 "2020-08-24T09:05:27Z")

</div>

Can you reproduce that now?

---

<div class="post-metadata">

**Author:** ![skllpara](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/skllpara/32/16406_2.png) [@skllpara](https://community.auth0.com/u/skllpara)\
**Post date:** [August 24, 2020, 2:50pm UTC](https://community.auth0.com/t/unable-to-issue-redirect-for-oauth-2-0-transaction-using-a-database-connection-but-social-provider-works/47665/5 "2020-08-24T14:50:50Z")

</div>

Yup. Here is my Auth.js

export default class Auth {  
constructor(history) {  
this.history = history;  
this.userProfile = null;  
this.auth0 = new auth0.WebAuth({  
domain: process.env.REACT\_APP\_AUTH0\_DOMAIN,  
//audience: process.env.REACT\_APP\_AUTH0\_AUDIENCE,  
clientID: process.env.REACT\_APP\_AUTH0\_CLIENT\_ID,  
redirectUri: process.env.REACT\_APP\_AUTH0\_CALLBACK\_URL,  
responseType: “token id\_token”,  
scope: “openid profile email”  
});  
}

login = () =\> {  
this.auth0.authorize();  
};

handleAuthentication = () =\> {  
this.auth0.parseHash((err, authResult) =\> {  
if (authResult && authResult.accessToken && authResult.idToken) {  
this.setSession(authResult);  
this.history.push(“/”);  
} else if (err) {  
this.history.push(“/”);  
alert(`Error: ${err.error}. Check the console for further details.`);  
console.log(err);  
}  
});  
};

As soon as i try to login i get a error on your Auth0 page with the failed to redirect.

---

<div class="post-metadata">

**Author:** ![skllpara](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/skllpara/32/16406_2.png) [@skllpara](https://community.auth0.com/u/skllpara)\
**Post date:** [August 24, 2020, 3:28pm UTC](https://community.auth0.com/t/unable-to-issue-redirect-for-oauth-2-0-transaction-using-a-database-connection-but-social-provider-works/47665/6 "2020-08-24T15:28:58Z")

</div>

So we have been doing more testing and it seems like it works on incognito but not normally.

Edit: No longer working on incognito too

---

<div class="post-metadata">

**Author:** ![skllpara](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/skllpara/32/16406_2.png) [@skllpara](https://community.auth0.com/u/skllpara)\
**Post date:** [August 25, 2020, 1:34am UTC](https://community.auth0.com/t/unable-to-issue-redirect-for-oauth-2-0-transaction-using-a-database-connection-but-social-provider-works/47665/8 "2020-08-25T01:34:00Z")

</div>

Got it solved. It was a broken callback url. However I am unsure why G Suite login worked - seems like an application safety issue if not fixed.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [August 25, 2020, 9:40am UTC](https://community.auth0.com/t/unable-to-issue-redirect-for-oauth-2-0-transaction-using-a-database-connection-but-social-provider-works/47665/9 "2020-08-25T09:40:22Z")

</div>

Glad you have eventually figured it out!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [September 9, 2020, 9:40am UTC](https://community.auth0.com/t/unable-to-issue-redirect-for-oauth-2-0-transaction-using-a-database-connection-but-social-provider-works/47665/10 "2020-09-09T09:40:24Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
