Coder Social home page Coder Social logo

Comments (7)

tolusha avatar tolusha commented on August 29, 2024

Hello @AkramMulani
Please follow these guides for installing and configuring Che.

[1] https://eclipse.dev/che/docs/stable/administration-guide/installing-che/
[2] https://eclipse.dev/che/docs/stable/administration-guide/configuring-oauth-for-git-providers/

from che.

AkramMulani avatar AkramMulani commented on August 29, 2024

Hello @tolusha

I have already gone through the mentioned documentation, but my question is regarding the user authentication in dashboard, like by default there is "Dex" and I wanted to replace it by GitLab. So I think we can configure it in CheCluster custom resources.

I had change that identity provider with GitLab one.

And It's working, I can now sign in using GitLab.

But again in the second document you provided, about OAuth for GitLab,

  1. Create new Application with following :
  • Name
  • Redirect callback URL
  • Check boxes
  1. Save the Id and Secretes

In this the redirect callback URL is given in documentation:
https://che-host/api/oauth/callback

But when I gave this url, in the dashboard's login page, after the sign in success, I got the error page of GitLab with message "Invalid callback URL".

So I wondering if there is any other callback URL provided in Eclipse che that after successfully sign in it will redirect to it.

I have also tried with following, but the same result I found:

  1. https://che-host/callback
  2. https://che-host/dashboard/

I'll share snapshots also.

Any highlights in this?

from che.

tolusha avatar tolusha commented on August 29, 2024

Hello @AkramMulani
To be honest, I haven't tried to configure GitLab as OIDC. Which doc did you follow?
Maybe I will have some idea.

from che.

AkramMulani avatar AkramMulani commented on August 29, 2024

Hello @tolusha

I followed official documentation for CheCluster custom resources.

https://eclipse.dev/che/docs/stable/administration-guide/checluster-custom-resource-fields-reference/

Firstly I got the custom resources for che from kubectl configurations, "checluster.yaml".

By following the "auth options" table in documentation I have just changed the following tags:
identityProviderURL - gitlab provider url
oAuthClientName - gitlab application client id
oAuthSecret - gitlab application client secret

from che.

tolusha avatar tolusha commented on August 29, 2024

The fields below are used to configure OIDC provider, not a git provider.
'oAuthSecret'
'oAuthClientName'
'identityProviderURL'

from che.

AkramMulani avatar AkramMulani commented on August 29, 2024

Ok so any inputs from your side regarding how to configure custom authentication by gitlab/github

from che.

tolusha avatar tolusha commented on August 29, 2024

I think, the only way is to confiure OIDC (like dex) to work with gitlab.
For instance https://dexidp.io/docs/connectors/gitlab/

from che.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.