University of Zurich · Example Payload

University Of Zurich Token Example

EducationHigher EducationUniversitySwitzerlandOpen AccessResearch RepositoryOpen DataIdentity

University Of Zurich Token Example is an example object payload from University of Zurich, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

requestresponse

Example Payload

Raw ↑
{
  "request": {
    "method": "POST",
    "url": "https://login.eduid.ch/idp/profile/oidc/token",
    "headers": {
      "Content-Type": "application/x-www-form-urlencoded",
      "Authorization": "Basic <base64(client_id:client_secret)>"
    },
    "form": {
      "grant_type": "authorization_code",
      "code": "SplxlOBeZQQYbYS6WxSbIA",
      "redirect_uri": "https://app.uzh.example/callback",
      "code_verifier": "dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk"
    }
  },
  "response": {
    "access_token": "eyJraWQiOiJSU0FTaWduMyIsImFsZyI6IlJTMjU2In0...",
    "token_type": "Bearer",
    "expires_in": 3600,
    "scope": "openid profile email",
    "id_token": "eyJraWQiOiJSU0FTaWduMyIsImFsZyI6IlJTMjU2In0...",
    "refresh_token": "8xLOxBtZp8"
  }
}