Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Oauth2/OIDC provider? #43

Open
poVoq opened this issue Jul 16, 2024 · 4 comments
Open

Custom Oauth2/OIDC provider? #43

poVoq opened this issue Jul 16, 2024 · 4 comments
Labels
enhancement New feature or request server Issues related to the server functionality

Comments

@poVoq
Copy link

poVoq commented Jul 16, 2024

I would like to link a self-hosted OCT server to my own Forgejo/Gitea instance which can act as a Oauth2/OIDC provider.

From the looks of it, the OCT server currently only supports some hard-coded Oauth2 providers (Google and Github?) but you can't specify a custom Oauth2 provider URL (and Name) via ENVs parameters.

Thanks!

@msujew
Copy link
Contributor

msujew commented Jul 16, 2024

Hey @poVoq,

you're right, it's currently unsupported. We'll likely get to this soon 👍

@msujew msujew added enhancement New feature or request server Issues related to the server functionality labels Jul 16, 2024
@yuvipanda
Copy link

Excited to try integrate this with jupyterhub and code-server once this feature is implemented!

@spoenemann
Copy link
Contributor

Hi @poVoq @yuvipanda, there's another way to solve this even before the additional configuration options are done: use open-collaboration-server as a library to create your own custom server.

See oauth-endpoint.ts how OAuth2 providers are specified.

You can create your own implementation and bind it to the dependency injection system as seen in container.ts.

Then you can create your own app like in app.ts and load your own InversifyJS container.

The API is in a very early stage and is likely to be broken. In particular, we might switch the dependency injection library (#21). But creating your own custom server app is definitely a scenario we want to support.

@yuvipanda
Copy link

Thank you for that information, @spoenemann!

I'll unfortunately still just have to wait at least for this feature to land mostly due to time and capacity constraints. So I'll just watch this with excitement :)

Thank you for working on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request server Issues related to the server functionality
Projects
None yet
Development

No branches or pull requests

4 participants