# Authorization-code-grant-flow broken in sandbox only

**URL:** <https://developer.sailpoint.com/discuss/t/authorization-code-grant-flow-broken-in-sandbox-only/53856>\
**Category:** Bugs\
**Tags:** authentication, sailpoint-identity-security\
**Created:** [April 24, 2024, 2:37pm UTC](https://developer.sailpoint.com/discuss/t/authorization-code-grant-flow-broken-in-sandbox-only/53856 "2024-04-24T14:37:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tdelorge-mmb](https://avatars.discourse-cdn.com/v4/letter/t/d9b06d/32.png) [@tdelorge-mmb](https://developer.sailpoint.com/discuss/u/tdelorge-mmb)\
**Post date:** [April 24, 2024, 2:37pm UTC](https://developer.sailpoint.com/discuss/t/authorization-code-grant-flow-broken-in-sandbox-only/53856/1 "2024-04-24T14:37:47Z")

</div>

Hello everyone,

Am I the only one to encounter a problem in the authentication kinematics via authorization code since the beginning of the week on the Sandbox environment?

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/d/da761827b934dd6318c1b0564dc8f22c0b19e0ba.png)

No problem with production, which correctly transfers https://{tenant}.identitynow.com/oauth/authorize to https://{tenant}.login.sailpoint.com/oauth/authorize (http 302)

If I go directly to https://{tenant-sb}.login.sailpoint.com/oauth/authorize in sandbox, it also works,

Did I miss an evolution on these urls?

Have a nice day,  
Thomas

---

<div class="post-metadata">

**Author:** ![tdelorge-mmb](https://avatars.discourse-cdn.com/v4/letter/t/d9b06d/32.png) [@tdelorge-mmb](https://developer.sailpoint.com/discuss/u/tdelorge-mmb)\
**Post date:** [April 24, 2024, 2:44pm UTC](https://developer.sailpoint.com/discuss/t/authorization-code-grant-flow-broken-in-sandbox-only/53856/2 "2024-04-24T14:44:26Z")

</div>

Doc about this topic is unclear 😭 : [Authentication | SailPoint Developer Community](https://developer.sailpoint.com/docs/api/authentication/#authorization-code-grant-flow)

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/8/81516edce7c770a746ccbb112e12b90b49540c9f.png)

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [April 26, 2024, 7:08pm UTC](https://developer.sailpoint.com/discuss/t/authorization-code-grant-flow-broken-in-sandbox-only/53856/3 "2024-04-26T19:08:30Z")

</div>

I recently fixed the authentication docs. You should no longer use `https://{tenant}.identitynow.com/oauth/authorize` as your auth URL. You should use `https://{tenant}.login.sailpoint.com/oauth/authorize`. I will ask the engineering team if they are doing some deprecation work.

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [April 26, 2024, 7:55pm UTC](https://developer.sailpoint.com/discuss/t/authorization-code-grant-flow-broken-in-sandbox-only/53856/4 "2024-04-26T19:55:07Z")

</div>

This is a confirmed bug reported by other customers. Ticket number is PLTUI-7841. A fix will be coming out soon.

---

<div class="post-metadata">

**Author:** ![jishnu\_suresh](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/jishnu_suresh/32/20590_2.png) [@jishnu\_suresh](https://developer.sailpoint.com/discuss/u/jishnu_suresh)\
**Post date:** [April 26, 2024, 8:06pm UTC](https://developer.sailpoint.com/discuss/t/authorization-code-grant-flow-broken-in-sandbox-only/53856/5 "2024-04-26T20:06:07Z")

</div>

We also faced a similar issue couple of days back. But that was resolved in sometime.

---

<div class="post-metadata">

**Author:** ![tdelorge-mmb](https://avatars.discourse-cdn.com/v4/letter/t/d9b06d/32.png) [@tdelorge-mmb](https://developer.sailpoint.com/discuss/u/tdelorge-mmb)\
**Post date:** [April 29, 2024, 7:07am UTC](https://developer.sailpoint.com/discuss/t/authorization-code-grant-flow-broken-in-sandbox-only/53856/6 "2024-04-29T07:07:01Z")

</div>

Thank for your replies, it’s seems like to be fix this morning 🤔🧐

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [June 28, 2024, 7:07am UTC](https://developer.sailpoint.com/discuss/t/authorization-code-grant-flow-broken-in-sandbox-only/53856/7 "2024-06-28T07:07:46Z")

</div>

Closed on June 28, 2024, 7:07am UTC

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