Identity Brokering using SAML in JavaScript

I know there’s a JavaScript adapter for the OpenID Connect protocol, but there isn’t one for SAML. How would I have to go about implementing Keycloak as an identity broker, using SAML 2.0, but not being able to use the Java adapter? I have to use JS unfortunately. Are there any blog posts or general direction anyone has?

SAML for a JS application would only make sense if the JS application is only invoking resources on the same domain. In which case you should have server-side code do the SAML login, then setup a cookie that the JS app uses when invoking the REST endpoints.

1 Like