microscopic-answer-24504
10/19/2022, 3:55 PMhigh-hospital-5525
10/19/2022, 4:52 PMactive:false
means any number of things can be off IMO
• the token itself
• client ID
• client secret
• scopes?
It gives no specific error. The Keycloak error might even suggest Basic auth being wrong here?
I recommend you double check everything. Maybe you can remove scopes at first to get it working as well
Basically it should respond with something like
{
"active": true,
...
"aud": "90241daf...",
"sub": "3c95ed...",
"exp": 166...,
"iat": 1665...,
"iss": "htt...",
"client_id": "90241daf..."
}
quiet-appointment-7418
10/19/2022, 5:14 PMquiet-appointment-7418
10/19/2022, 5:14 PMquiet-appointment-7418
10/19/2022, 5:15 PMquiet-appointment-7418
10/19/2022, 8:35 PM{
"exp": 1666213458,
"iat": 1666211658,
"jti": "6f26e6b4-d8f3-409d-9ed1-2f9487f2d4a9",
"iss": "<http://keycloak-http.keycloak:80/auth/realms/testrealm>",
"aud": [
"testclient",
"account"
],
"sub": "2c51554d-5fa6-42bc-886e-b569a07f14fd",
"typ": "Bearer",
"azp": "testclient",
"session_state": "fe2238ce-a47d-4fea-9b4d-e24c330a362f",
"name": "Test User",
"given_name": "Test",
"family_name": "User",
"preferred_username": "testuser",
"email": "<mailto:test@gmail.com|test@gmail.com>",
"email_verified": true,
"acr": "1",
"allowed-origins": [
"*"
],
"realm_access": {
"roles": [
"offline_access",
"uma_authorization",
"testrole",
"default-roles-testrealm"
]
},
"resource_access": {
"account": {
"roles": [
"manage-account",
"manage-account-links",
"view-profile"
]
}
},
"scope": "testclientscope email profile",
"sid": "fe2238ce-a47d-4fea-9b4d-e24c330a362f",
"client_id": "testclient",
"username": "testuser",
"active": true
}
quiet-appointment-7418
10/19/2022, 8:36 PMquiet-appointment-7418
10/19/2022, 8:38 PMcurl -X 'POST' -d 'client_id=testclient&scope=profile+email&token=SOMEACCESS_TOKEN' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Token_type_hint: requesting_party_token' '<http://keycloak-http.keycloak:80/auth/realms/testrealm/protocol/openid-connect/token/introspect>'
quiet-appointment-7418
10/19/2022, 8:39 PMquiet-appointment-7418
10/19/2022, 8:42 PM