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

增加ldap认证 #139

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

增加ldap认证 #139

wants to merge 1 commit into from

Conversation

scutcr7
Copy link

@scutcr7 scutcr7 commented Sep 29, 2021

No description provided.

@tomsun28 tomsun28 self-requested a review September 29, 2021 04:07
Copy link
Member

@tomsun28 tomsun28 left a comment

Choose a reason for hiding this comment

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

Thanks!

Comment on lines +126 to +130
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.60</version>
</dependency>
Copy link
Member

Choose a reason for hiding this comment

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

建议使用已有的jackson进行json序列化,尽量减少引入包

public class LdapProcessor extends BaseProcessor {
@Override
public boolean canSupportSubjectClass(Class<?> var) {
return false;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return false;
return var == LdapSubject.class;


@Override
public Class<?> getSupportSubjectClass() {
return null;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return null;
return LdapSubject.class;


@Override
public Subject authenticated(Subject var) throws SurenessAuthenticationException {
return null;
Copy link
Member

Choose a reason for hiding this comment

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

这里需要对LadpSubject进行认证,认证成功提取对应角色筛入subject

@tomsun28 tomsun28 changed the base branch from master to dev October 12, 2021 14:15
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.

2 participants