GithubHelp home page GithubHelp logo

Comments (2)

wayneliu0019 avatar wayneliu0019 commented on August 28, 2024 1

这里给你一个配置示例:

假设用户部署的csghub实例的url为http://aihub.mycorp.cn, 启动的casdoor实例url为http://aihub.mycorp.cn:8000,那么portal服务需要更改的配置项目如下:

      ON_PREMISE: false
      OIDC_IDENTIFIER: 57d8874xxxxxxxxxf97
      OIDC_SECRET: 88790798803xxxxxxxxxx5aaa5a5bd8b44d6922d93
      OIDC_REDIRECT_URI: http://aihub.mycorp.cn/oidc/callback
      OIDC_AUTHORIZATION_ENDPOINT: http://aihub.mycorp.cn:8000/login/oauth/authorize
      OIDC_TOKEN_ENDPOINT: http://aihub.mycorp.cn:8000/api/login/oauth/access_token
      OIDC_USERINFO_ENDPOINT: http://aihub.mycorp.cn:8000/api/userinfo
      LOGIN_URL: http://aihub.mycorp.cn:8000/login/oauth/authorize?client_id=57d8874xxxxxxxxxf97&response_type=code&redirect_uri=http://aihub.mycorp.cn/oidc/callback&scope=read&state=casdoor
      SIGNUP_URL: http://aihub.mycorp.cn:8000/signup/portal

上面OIDC_IDENTIFIEROIDC_SECRET分别是在casdoor中创建的appliation对应的client_id和client_secret, 截图如下:
image

from csghub.

hiveer avatar hiveer commented on August 28, 2024

我们通过一个环境变量控制登录方式的接入,这个环境变量是: ON_PREMISE

  1. 如果 ON_PREMISE=true 那么系统将采用自带的一个简易登录方式
  2. 如果 ON_PREMISE=false 那么这个时候就可以通过支持 OIDC 的登录方式登录,比如 casdoor

你需要添加如下的环境变量:
OIDC_IDENTIFIER=
OIDC_SECRET=
OIDC_REDIRECT_URI=http:///oidc/callback
OIDC_AUTHORIZATION_ENDPOINT=
OIDC_TOKEN_ENDPOINT=
OIDC_USERINFO_ENDPOINT=

from csghub.

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.