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

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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

gaopeng666
Copy link

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:

    add casdoor login support SSO

This closes DataLinkDC#1620
@gaopeng666
Copy link
Author

@aiwenmo Excuse me, what is this question

@leechor
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.

@Zzm0809
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

@Zzm0809
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

@@ -109,6 +109,8 @@ public enum Status {
KICK_OUT(10024, "token has been kicked offline", "token 已被踢下线"),
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

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

@@ -1105,7 +1105,7 @@ CREATE TABLE `dinky_sys_login_log` (
`id` int NOT NULL AUTO_INCREMENT COMMENT 'key',
`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

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

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,=.=

@gaopeng666
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] login of SSO
5 participants