RapiDoc icon indicating copy to clipboard operation
RapiDoc copied to clipboard

Allow for modifying the OAuth authUrl or request parameters to add additional parameters to support SMART-on-FHIR launch flow

Open almostchristian opened this issue 4 months ago • 0 comments

SMART on FHIR requires adding a launch parameter when requesting a code for the launch flow. This may not be used by the auth server itself, but rather by a proxy. In my case, I have a proxy that sits between rapidoc and Keycloak, the proxy will read and store the launch parameter and then redirects to the real keycloak authorizationUrl without the launch parameter. After the user logs in to Keycloak, it then redirects to the proxy with the code response. The proxy processes the keycloak response, then the proxy redirects the code and other parameters back to rapidoc.

Currently, rapidoc has no mechanism to customize the authCodeParams. I can try adding the parameter in the authorizationUrl but then it will have to be hardcoded to the OpenAPI document.

https://github.com/rapi-doc/RapiDoc/blob/7f53d25959e5a4e1beb4b610aaef445b896838f2/src/templates/security-scheme-template.js#L212-L227

Image

almostchristian avatar Aug 21 '25 06:08 almostchristian