I am using Token inline webhook and when the webhook made a call to my API the Request payload does not contain all the information. I am looking for “Request” property to have some value but it is coming as null. I am using PKCE flow in my application. Do I need to apply any settings inside OKTA? I am using latest OIDE engine.
{
“source”: “https://xxxxxxxx.com/oauth2/xxxxx/v1/authorize”,
“data”: {
“context”: {
“protocol”: {
“issuer”: {
“uri”: “xxxxxxxx”,
“AuthServerId”: “aus12iubd8yUnownX0h8”
}
},
“user”: {
“id”: “00uen4396bIKFZTZk0h7”,
“profile”: {
“login”: “xxxx.com”,
“firstName”: “xxxx”,
“lastName”: “xxxx”,
“fullName”: “xxx xxx”
}
},
“Request”: null,
“OAuth2”: null
}
}
}
I’m not able to reproduce this. When I test the Token Inline hook with PKCE, I get an object back as the request in the payload sent to my hook endpoint.
Here’s a snippet of what I’m seeing:
"data": {
"context": {
"request": {
"id": "8aa11c2e028583f57d8185c14237ab28",
"method": "GET",
"url": {
"value": "https://OktaDomain/oauth2/ausfhu4svtVaiy0Cu1d7/v1/authorize?scope=openid+profile&response_type=code&redirect_uri=http%3A%2F%2Flocalhost%3A8080&state=1234&code_challenge_method=S256&nonce=foo&client_id=0oa*****&code_challenge=RFyhQOTDDKmGJowsJxQ2g4lRnfmUPkUyLI3lZRpGykM"
},
"ipAddress": "165.85.198.36"
},
"protocol": {
"type": "OAUTH2.0",
"request": {
"scope": "openid profile",
"state": "1234",
"redirect_uri": "http://localhost:8080",
"response_mode": "query",
"response_type": "code",
"client_id": "0o******"
},
"issuer": {
"uri": "https://OktaDomain.com/oauth2/ausfhu4svtVaiy0Cu1d7"
},
"client": {
"id": "0oa*******",
"name": "Test SPA",
"type": "PUBLIC"
}
},
Note that request is lowercased. Maybe that’s why you are seeing a null “Request?”
yes. lowercasing worked. thank you.
1 Like
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.