-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
base: dev
Are you sure you want to change the base?
增加ldap认证 #139
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
<dependency> | ||
<groupId>com.alibaba</groupId> | ||
<artifactId>fastjson</artifactId> | ||
<version>1.2.60</version> | ||
</dependency> |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return false; | |
return var == LdapSubject.class; |
|
||
@Override | ||
public Class<?> getSupportSubjectClass() { | ||
return null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return null; | |
return LdapSubject.class; |
|
||
@Override | ||
public Subject authenticated(Subject var) throws SurenessAuthenticationException { | ||
return null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里需要对LadpSubject进行认证,认证成功提取对应角色筛入subject
No description provided.