C
Coder.com•3mo ago
Alex

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
Codercord
Codercord•3mo ago
Codercord
Codercord•3mo ago
<#1399369773183406171>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Phorcys
Phorcys•3mo ago
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
Alex
AlexOP•3mo ago
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.ws
Phorcys
Phorcys•2mo ago
do you need a full linux environment to run though? or just the IDE @Alex bumping this :)
Alex
AlexOP•2mo ago
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

Did you find this page helpful?