# Okta Callback not working

**URL:** <https://devforum.okta.com/t/okta-callback-not-working/25515>\
**Category:** OAuth/OIDC\
**Tags:** angular\
**Created:** [October 9, 2023, 11:15am UTC](https://devforum.okta.com/t/okta-callback-not-working/25515 "2023-10-09T11:15:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dipti](https://avatars.discourse-cdn.com/v4/letter/d/8491ac/32.png) [@Dipti](https://devforum.okta.com/u/Dipti)\
**Post date:** [October 9, 2023, 11:15am UTC](https://devforum.okta.com/t/okta-callback-not-working/25515/1 "2023-10-09T11:15:50Z")

</div>

Hi,

I am trying to use Okta with angular.  
My redirect Uri is window.location.origin + ‘ui/login/callback’  
My paths are defined as:  
{ path: ‘ui/login’, component: LoginComponent },  
{ path: ‘ui/login/callback’, component: OktaCallbackComponent},

The authorize endpoint is successful, but callback returns “code” and “state” but doesn’t display the app page. This works fine if I remove “ui/” from the redirect Uri and paths.  
My Okta application is having ‘localhost:4200/ui/login/callback’ under “Login redirects”

Can someone help me here?

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 15, 2024, 11:59pm UTC](https://devforum.okta.com/t/okta-callback-not-working/25515/2 "2024-02-15T23:59:27Z")

</div>

Closed on February 15, 2024, 11:59pm UTC


