1/ Login to PP

login PREPROD

1/ Login to ISO-PROD

login ISO-PROD

1/ Login to PROD

login PROD

DOCUMENTATION

GOAL : log the user and get the auth code on server side

DOCUMENTATION



2/ Validate Auth Code & get Access Token

GOAL : validate the auth code and get the access token
This request is executed server-side in real case :


Response example :
{
    "access_token": "eyJhbXXXDQ",
    "token_type": "bearer",
    "refresh_token": "eyXXXXXXXreFgA",
    "expires_in": 899,
    "scope": "profile",
    "jti": "8198119eXXXXXXXXX-a1a42ad9c3d0"
}

3/ Get JWT bearer

Response example :
{
  "sub": "XXXXX31a-b27XXXXXXXXX",
  "scope": [
    "email",
    "openid",
    "profile"
  ],
  "iss": "https://api-eu.decathlon.net/connect",
  "data_center": "EU",
  "personid": "1XXXXXX61",
  "exp": 1567582004,
  "authorities": [
    "ROLE_USER"
  ],
  "jti": "XXXXXX",
  "client_id": "XXXXXXXXXX"
}