Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Feature-1620][admin] Integrate Casdoor for SSO #2250

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

Open
gaopeng666 wants to merge 1 commit into DataLinkDC:dev
base: dev
Choose a base branch
Loading
from gaopeng666:Feature-1620

Conversation

Copy link

@gaopeng666 gaopeng666 commented Aug 21, 2023

add casdoor login support SSO

This closes #1620

Purpose of the pull request

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

Copy link
Author

@aiwenmo Excuse me, what is this question

Copy link
Contributor

leechor commented Aug 21, 2023

@aiwenmo Excuse me, what is this question

this is github action's problem, wait for a moment, fixing it.

Copy link
Contributor

Zzm0809 commented Aug 21, 2023

@aiwenmo Excuse me, what is this question

hi, @gaopeng666 ,thank you very much for your pr, please add postgre's ddl/dml and h2's ddl/dml

Copy link
Contributor

Zzm0809 commented Aug 21, 2023

@aiwenmo Excuse me, what is this question

hi, @gaopeng666 ,thank you very much for your pr, please add postgre's ddl/dml and h2's ddl/dml

Then please provide the design of the front-end page

TOKEN_FREEZED(10025, "token has been frozen", "token 已被冻结"),
NO_PREFIX(10026, "The token was not submitted according to the specified prefix", "未按照指定前缀提交 token"),
STATE_CODE_ERROR(10027, "state inconsistency or state and code not pair", "状态码前后不一致或状态码和code不匹配"),
CASDOOR_DEFAULT_TENANT_NOFOUND(10028, "The Casdoor default tenant does not exist", "casdoor默认租户不存在"),
Copy link
Contributor

@gaoyan1998 gaoyan1998 Aug 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe better to remove Casdoor ? eg : The default tenant does not exist
Or use an existing USER_NOT_BINDING_TENANT instead

`user_id` int NOT NULL COMMENT 'user id',
`username` varchar(60) COLLATE utf8mb4_general_ci NOT NULL COMMENT 'username',
`login_type` int NOT NULL COMMENT 'login type(0:LOCAL,1:LDAP)',
`login_type` int NOT NULL COMMENT 'login type(0:LOCAL,1:ldap,2:Casdoor)',
Copy link
Contributor

@gaoyan1998 gaoyan1998 Aug 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean that SSO login is a standalone login method and not a replacement for existing local logins?

Copy link

@li7hai26 li7hai26 Sep 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Login type Casdoor is special, I think oidc (oauth2) is better than casdoor,=.=

Copy link
Author

@aiwenmo Excuse me, what is this question

hi, @gaopeng666 ,thank you very much for your pr, please add postgre's ddl/dml and h2's ddl/dml

Then please provide the design of the front-end page

ok, i will add

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@gaoyan1998 gaoyan1998 gaoyan1998 left review comments

+1 more reviewer

@li7hai26 li7hai26 li7hai26 left review comments

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Feature] login of SSO

AltStyle によって変換されたページ (->オリジナル) /