Retrieve token in application

84 views
Skip to first unread message

Amms

unread,
Oct 16, 2018, 7:53:16 AM10/16/18
to dcm4che
Hello,

  
 Installed dcm4chee secure version with Wildfly-keycloak adapter and works fine. My question is how can I get the token inside the application as it is needed for REST calls, if I don't want to use keycloak.js or any CURL commands?

   I tried with ajax call: /auth/realms/dcm4che/protocol/openid-connect/token But failed with response 405 -Method  not allowed.

Thanks

gunterze

unread,
Oct 16, 2018, 8:08:32 AM10/16/18
to dcm4che
Guess you used GET instead POST. Anyway, getting familiar with keycloak.js may save you time in the long run.
Reply all
Reply to author
Forward
0 new messages