# Server\_error: Unable to issue redirect for OAuth 2.0 transaction - please help :)

**URL:** <https://community.auth0.com/t/server-error-unable-to-issue-redirect-for-oauth-2-0-transaction-please-help/105164>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [April 20, 2023, 2:43pm UTC](https://community.auth0.com/t/server-error-unable-to-issue-redirect-for-oauth-2-0-transaction-please-help/105164 "2023-04-20T14:43:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaun\_mcfadden](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@shaun\_mcfadden](https://community.auth0.com/u/shaun_mcfadden)\
**Post date:** [April 20, 2023, 2:43pm UTC](https://community.auth0.com/t/server-error-unable-to-issue-redirect-for-oauth-2-0-transaction-please-help/105164/1 "2023-04-20T14:43:56Z")

</div>

I am trying to implement auth0 to my angular application. Everything is working right up until when I login. I login through google and the error message in the title. Here is my code:

```
AuthModule.forRoot( {
  domain: '(hidden)',
  clientId: '(hidden)',
})

```

I have set the allowed callback URLs as: [http://localhost:4200](http://localhost:4200)  
Allowed logout URLs as: [http://localhost:4200](http://localhost:4200)  
And allowed web origins as: [http://localhost:4200](http://localhost:4200)

Can anyone help?

---

<div class="post-metadata">

**Author:** ![shaun\_mcfadden](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@shaun\_mcfadden](https://community.auth0.com/u/shaun_mcfadden)\
**Post date:** [April 20, 2023, 2:49pm UTC](https://community.auth0.com/t/server-error-unable-to-issue-redirect-for-oauth-2-0-transaction-please-help/105164/2 "2023-04-20T14:49:06Z")

</div>

adding:

```auto
      authorizationParams: {
        redirect_uri: window.location.origin
      }

```

Solved the issue.

---

<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:** [May 4, 2023, 2:49pm UTC](https://community.auth0.com/t/server-error-unable-to-issue-redirect-for-oauth-2-0-transaction-please-help/105164/3 "2023-05-04T14:49:36Z")

</div>

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