Embedding Coder into another web app
Hi! I'm looking into integrating Coder into another application. I've seen https://github.com/pad-ws/pad.ws, which apparently just iframes Coder. For auth, I believe both their main app and Coder are configured to use the same instance of Keycloak, so when you log in into their main app, you are automatically logged in into their Coder instance.
Are there any other simpler approaches that do not require any additional component like Keycloak?
6 Replies
<#1399369773183406171>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
yeah, you can either reuse the same oidc provider (github, gitlab, etc. or have your app function as an oidc provider too)
or you can also use the API to create users
though usually Coder is not the most appropriate tool for integrations so i'd be curious to learn what's your end goal, maybe there's better options out there
it would be about adding an online IDE to an existing webapp...
so likely registering to the existing app would have the API call in the backend that creates a matching Coder user, and then we can embed Coder in the webapp.
I didn't find much documentation about embedding, except for pad.ws... and I guess the existence of
CODER_ADDITIONAL_CSP_POLICY
means that Coder is somewhat apt for embedding...
so I wonder if there's anything we can do beyond reverse-engineering pad.wsdo you need a full linux environment to run though?
or just the IDE
@Alex bumping this :)
sorry, I don't use Discord much 🙂
we actually now managed to create Coder users through the API, our problem now is embedding Coder in an iframe in our website...
(the OIDC trick is neat, but it's a bit unpractical for us right now... we're poking at the Coder source code right now to see our options)
happy to clarify further- not sure what the "full Linux environment" referred to