Validating multiple resources

14 views
Skip to first unread message

Kasuni Lokuarachchi

unread,
Sep 30, 2022, 12:51:16 AM9/30/22
to Keycloak User
hi team,

I am trying to validate multiple resources and it is breaking when the resource names string array contains multiple values. 

These are my request details.


let body = `grant_type=urn:ietf:params:oauth:grant-type:uma-ticket&audience=${process.env.KEYCLOACK_RESOURCE_SERVER_ID}&response_mode=permissions${resourceString}`;

return this.post(
    `realms/${process.env.KEYCLOACK_RELAM}/protocol/openid-connect/token`,
    body,
    {
        headers: {
            "Content-Type": "application/x-www-form-urlencoded",
            authorization: `Bearer ${token}`,
        },
    }
);


Error : 

extensions: {
    code: undefined,
    response: {
      url: '...',
      status: 500,
      statusText: 'Internal Server Error',
      body: '<html><head><title>Error</title></head><body>Internal Server Error</body></html>'
    }
  }


Any help on this is much appreciated.

Thanks & Regards,
Kasuni

Reply all
Reply to author
Forward
0 new messages