not able to differentiate Authorization cancel response

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.

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?

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

Thank for responding, Its a private app.

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

@Ayeskumar also, here is the documentation for how you can check the app in the account.

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 since this is not the expected behavior, I would submit a ticket to HubSpot Support for help.

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

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

Yea sure, Thank you so much