question

AmitaJain-4101 avatar image
0 Votes"
AmitaJain-4101 asked azure-cxp-api edited

Azure AD B2C: Getting Error while refreshing Token in iOS App

I am trying to refresh token using Token end point in my iOS App, but getting error as:
"error_description": AADB2C90083: The request is missing required parameter: grant_type

Refresh Token endpoint is: https://{myTenant}.b2clogin.com/{myTenant}..onmicrosoft.com/B2C_1_SignInSignUpFlow/oauth2/v2.0/token

I am sending below parameters to the request:
"grant_type": "refresh_token",
"refresh_token": {my_refreshToken},
"client_id": {my_client_id},
"redirect_url": {my_app_redirect_url}


Please tell me, if I am missing anything?

azure-ad-b2c
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JamesHamil-MSFT avatar image
0 Votes"
JamesHamil-MSFT answered JamesHamil-MSFT commented

Hi @AmitaJain-4101 , have you seen this thread? If so please let me know so I can look into this further.

Update: User solved issue by using GET instead of POST

Thank you,
James


· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @AmitaJain-4101 , do you still need help with this issue?

0 Votes 0 ·

Hi @JamesHamil-MSFT, I have found the solution for this problem. I was sending POST request instead of GET request, hence the parameters I was sending were getting ignored. :)

0 Votes 0 ·

Hi @AmitaJain-4101 , I'm glad you figured it out! I updated the answer to include your solution. If you don't mind please mark it as verified so other users may reference it.

Thank you,
James

0 Votes 0 ·