Problems with access and refresh token lenght

Good morning,
I tried to create a new api and a new application, but when I go to make the calls to get access token and refresh token this comes back very short, and when I go to use it to access the api it is not considered and I access is rejected.
What could be the cause of the shortened length of these tokens and their failure?

To get the token I make a “GET” call like this
tenant/authorize?Audience=[audience]&scope=offline_access&response_type=code&client_id=[client_id]&redirect_uri=[redirect_uri]

after this call i recive a code like SN2Xs5Oe4a5JKuYD

After i recived the code i make a “POST” call like this

tenant/oauth/token
in the headers i send “Content-Type: application/x-www-form-urlencoded”
in the body i send
grant_type:authorization_code
client_id:[client_id]
client_secret:[client_secret]
code:SN2Xs5Oe4a5JKuYD
redirect_uri:[redirect_uri]

the response i recive is like

{
“access_token”: “dkqNzZvVP4NhCVmf1bFMRtIPyImsU3If”,
“refresh_token”: “KieNhLjKtYh9vjSJu524iZT7dbpje2bvxm_aYxDjrCvYF”,
“scope”: “offline_access”,
“expires_in”: 86400,
“token_type”: “Bearer”
}

I used to got a way longer access and refresh token in the test i did several month ago and that worked perfectly.

Thanks
Andrea

Hey @sw11, Looks like your are getting an opaque access token, which is received when you don’t have the audience parameter in the authorize request.

Please check your audience param in the /authorize request, it needs to be an API identifier.

Regards,
Sid

Hi, I just sent you a private message with the call i did to get the token, looks like the Audience parameter was included in the call

Please let me know,
thanks
Andrea

Hi,
any news regarding the problem i’m experiencing in the refresh/access token exchange?
Thanks
Andrea

hey @sw11, Will you be to DM me the HAR file to look at?
Method to get HAR File: Generate and Analyze HAR Files

Regards,
Sid

Hi @sidharth.chaudhary ,
DM Sent with the requested

Regards
Andrea

Hi, have you recived my dm with the files? any news on that?

Andrea