Software Statements - milossontak/adaa Wiki

Software Statements

JWT tokens validity

  • The JWT statement is valid for 12 months
  • Please fill in email, we will contact you about news or tokens validity

Request

Prerequisites for this request

Qualified certificate from

  • I.CA
  • PostSignum

Certificates in Postman - How to add certcicate in Postman

curl --cert-type P12 cert.p12:password --location --request POST 'https://api.kb.cz/open/api/client-registration/v1/software-statements' \
--header 'x-correlation-id: 42c0e667-0f5e-4900-9f5e-fd707e35ba75' \
--header 'x-api-key: Bearer 3a7f779a-8cc1-364f-be2b-9ea361f53816' \
--header 'Content-Type: application/json' \
--data-raw '{
    "softwareName": "example app",
    "softwareNameEn": "example app",
    "softwareId": "f64bf2e447e545228c78e07b091a82ee",
    "softwareVersion": "1.0",
    "softwareUri": "https://client.example.org",
    "redirectUris": [
        "https://client.example.org/callback",
        "https://client.example.org/callback-backup"
    ],
    "tokenEndpointAuthMethod": "client_secret_post",
    "grantTypes": [
        "authorization_code",
        "refresh_token"
    ],
    "responseTypes": [
        "code"
    ],
    "registrationBackUri": "https://client.example.org/backuri",
    "contacts": [
        "email: [email protected]"
    ],
    "logoUri": "https://client.example.org/icon.png",
    "tosUri": "https://client.example.org/tos",
    "policyUri": "https://client.example.org/policy"
}'

or

curl --cert  client.crt --key client.key --cacert ca.crt https://api.kb.cz/open/api/client-registration/v1/software-statements

Response

Check information in JWT token You can check content JWT token on https://jwt.io

eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJLb21lcsSNbsOtIEJhbmthIGEucy4iLCJpYXQiOjE2NTU3MjYzMzMsImV4cCI6MTY4NzI2MjMzMywidmVuZG9yTmFtZSI6IkJsb2szNyBzLnIuby4iLCJ2ZW5kb3JSZWdpc3RyYXRpb25OdW1iZXIiOiIwNTQzNTg3MSIsInNvZnR3YXJlTmFtZSI6ImV4YW1wbGUgYXBwIiwic29mdHdhcmVOYW1lRW4iOiJleGFtcGxlIGFwcCIsInNvZnR3YXJlSWQiOiJmNjRiZjJlNDQ3ZTU0NTIyOGM3OGUwN2IwOTFh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