Comments (2)
这里给你一个配置示例:
假设用户部署的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_IDENTIFIER
和OIDC_SECRET
分别是在casdoor中创建的appliation对应的client_id和client_secret, 截图如下:
from csghub.
我们通过一个环境变量控制登录方式的接入,这个环境变量是: ON_PREMISE
- 如果 ON_PREMISE=true 那么系统将采用自带的一个简易登录方式
- 如果 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)
- bin/dev 启动时中断 HOT 2
- Web 端看不到创建的模型、数据集以及代码仓 HOT 3
- 数据集模块是否考虑增加数据预览功能 HOT 1
- 数据集行业标签添加数据后,刷新会出现到数据集标签中 HOT 2
- 登录已失效,请点击重新登录 HOT 1
- 修改为https后,登录git报错 HOT 3
- 项目国际化文件中部分代码重复 HOT 1
- 编译的csghub-portal镜像代码报错 HOT 3
- Feature Request: Support for Additional File Formats in Data Preview HOT 1
- FR: Enhance Large Dataset Management Capabilities HOT 2
- 为什么要使用 ruby on rails 这么小众的后端框架,不太利于企业集成。。。 HOT 2
- csghub-git 容器反复重启 HOT 13
- 代码仓库按License过滤,数据结果为空 HOT 2
- 前端bug,在代码管理模块切换License时点击到里面的图标,会导致查询不出数据 HOT 1
- 当模型、数据集、代码库同名时,修改标签失败 HOT 5
- all-in-one 打不开,helm 打不开 HOT 1
- gitea 持久化到本地大约会占用多少空间? HOT 3
- http 和 ssh协议进行git操作的地址是引用的同一个变量吗? HOT 3
- 更改 nginx端口号 然后克隆大文件克隆不下来?
- 按照官网文档一键部署之后,点击系统一级菜单获取不到数据,注册完成之后登录报错 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csghub.