REST API : access_token expiration problem

Former Member
Former Member

Hi, 

Currently we  are able to generate new access_token for authentication of REST API & it is giving 200 status code along with access_token, refresh_token, expires_in & token_type.

Current scenario: Once this generated access_token expires which is around 24hours after version upgrade, we are still getting 200 status code with html response as given in below screenshots.

Expected scenario: It should give 403 error code with access_token expires message as coming previously.

Parents
No Data
Reply
  • Former Member
    0 Former Member in reply to Patrick M.

    Hi Patrick,

    We are not using any custom authentication code in my local setup & our platform version is 12.0.4.18802 here, but still getting same html response with 200 status code while access_code expire.

    1)localhost/.../authorize
    Hit this url In browser & take code from there


    2) use below curl request for generate access_token & refresh_token
    curl --location --request POST 'localhost/.../token' \
    --header 'Content-Type: application/x-www-form-urlencoded' \
    --data-urlencode 'grant_type=authorization_code' \
    --data-urlencode 'client_id=8be683f8-client-id********' \
    --data-urlencode 'client_secret=cmcs_client scret******' \
    --data-urlencode 'code=code which you get from above url********' \
    --data-urlencode 'redirect_uri=http://localhost/'

    If we are missing something, Please guide us on same area.

    Thanks

Children
No Data