# not able to differentiate Authorization cancel response

**URL:** <https://community.hubspot.com/t/not-able-to-differentiate-authorization-cancel-response/68995>\
**Category:** APIs & Integrations\
**Tags:** free\
**Created:** [November 10, 2022, 11:29am UTC](https://community.hubspot.com/t/not-able-to-differentiate-authorization-cancel-response/68995 "2022-11-10T11:29:20Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ayeskumar](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@Ayeskumar](https://community.hubspot.com/u/Ayeskumar)\
**Post date:** [November 10, 2022, 11:29am UTC](https://community.hubspot.com/t/not-able-to-differentiate-authorization-cancel-response/68995/1 "2022-11-10T11:29:20Z")

</div>

Even after clicking on cancel i am able to generate the authorization code .is there any way to differenciate the user has canceled or not.

 ![Ayeskumar_0-1668079555147.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/b/4bfb75f1a3044a8df0effbc45354b7a2b76c7f2d.png)

---

<div class="post-metadata">

**Author:** ![danmoyle](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/danmoyle/32/91166_2.png) [@danmoyle](https://community.hubspot.com/u/danmoyle)\
**Post date:** [November 11, 2022, 12:49pm UTC](https://community.hubspot.com/t/not-able-to-differentiate-authorization-cancel-response/68995/2 "2022-11-11T12:49:42Z")

</div>

I’m not familiar with what you’re doing here @Ayeskumar, sorry. I’ll tag a couple of friends to see if they recognize this and have an answer for you. @Kevin-C, @Anton, @crispyGTM, @Jnix284, @Teun, @karstenkoehler - anyone have insight for this question?

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [November 11, 2022, 12:57pm UTC](https://community.hubspot.com/t/not-able-to-differentiate-authorization-cancel-response/68995/3 "2022-11-11T12:57:07Z")

</div>

Hi @Ayeskumar are you adding a private app or are you testing this for an app that you will list in the marketplace?

---

<div class="post-metadata">

**Author:** ![Ayeskumar](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@Ayeskumar](https://community.hubspot.com/u/Ayeskumar)\
**Post date:** [November 11, 2022, 12:58pm UTC](https://community.hubspot.com/t/not-able-to-differentiate-authorization-cancel-response/68995/4 "2022-11-11T12:58:30Z")

</div>

Thank for responding, Its a private app.

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [November 11, 2022, 1:02pm UTC](https://community.hubspot.com/t/not-able-to-differentiate-authorization-cancel-response/68995/5 "2022-11-11T13:02:33Z")

</div>

@Ayeskumar Private Apps can only be installed on a single account, so you would know by virtue of the authorization within that account.

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [November 11, 2022, 1:04pm UTC](https://community.hubspot.com/t/not-able-to-differentiate-authorization-cancel-response/68995/6 "2022-11-11T13:04:22Z")

</div>

@Ayeskumar also, here is the [documentation](https://developers.hubspot.com/docs/api/private-apps#:~:text=In%20your%20HubSpot%20account%2C%20click%20the%20Settings%20page%20in%20the,name%20of%20your%20private%20app.) for how you can check the app in the account.

---

<div class="post-metadata">

**Author:** ![Ayeskumar](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@Ayeskumar](https://community.hubspot.com/u/Ayeskumar)\
**Post date:** [November 11, 2022, 1:16pm UTC](https://community.hubspot.com/t/not-able-to-differentiate-authorization-cancel-response/68995/7 "2022-11-11T13:16:02Z")

</div>

Hi @Jnix284 ,

My usecase is i am trying to generate access token using Oauth 2.0.  
While generating,in the consent page its asking to accept or cancel, after click on cancel still am able to generate the access token.  
Hubspot sends code without any extra information to redirect the URL, even if cancelled.The response is same for both success and cancelled Authentication .  
Below is the screenshot from consent page:

 ![Ayeskumar_0-1668172552026.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/f/ef2e7f9cb4a8c568537104de1b38fecf8f774f79.png)

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [November 13, 2022, 3:04pm UTC](https://community.hubspot.com/t/not-able-to-differentiate-authorization-cancel-response/68995/8 "2022-11-13T15:04:27Z")

</div>

@Ayeskumar since this is not the expected behavior, I would submit a ticket to HubSpot Support for help.

---

<div class="post-metadata">

**Author:** ![Ayeskumar](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@Ayeskumar](https://community.hubspot.com/u/Ayeskumar)\
**Post date:** [November 14, 2022, 2:11am UTC](https://community.hubspot.com/t/not-able-to-differentiate-authorization-cancel-response/68995/9 "2022-11-14T02:11:11Z")

</div>

Thank you so much, can you please share the ticket deatils or link so that i can alos have a track of it.

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [November 14, 2022, 2:12am UTC](https://community.hubspot.com/t/not-able-to-differentiate-authorization-cancel-response/68995/10 "2022-11-14T02:12:31Z")

</div>

Hi @Ayeskumar , I apologize for any confusion, I did not submit a ticket - I was suggesting that you should do this from your account.

---

<div class="post-metadata">

**Author:** ![Ayeskumar](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@Ayeskumar](https://community.hubspot.com/u/Ayeskumar)\
**Post date:** [November 14, 2022, 2:14am UTC](https://community.hubspot.com/t/not-able-to-differentiate-authorization-cancel-response/68995/11 "2022-11-14T02:14:44Z")

</div>

Yea sure, Thank you so much
