Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
1 reply
Subscribers
7 subscribers
Views
1220 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Administration
Hello everyone. I'm implementing a new custom AuthenticationProvider.
sergiod
over 11 years ago
Hello everyone.
I'm implementing a new custom AuthenticationProvider. When I run it, it displays the following warn and does not follow the authentication process:
WARN com.appiancorp.security.auth.AuthenticationEventLoggerListener - Cannot retrieve the detailed metadata about the login event. The details bean inside the authentication token should be an instance of com.appiancorp.security.auth.AuthenticationDetails. Authentication.getDetails()=null
This is the code:
AppianUserDetails ud = new AppianUserDetails (userProfile, PasswordStatus.NORMAL, role);
UsernamePasswordAuthenticationToken resultAuth = new UsernamePasswordAuthenticationToken(ud, null, ud.getAuthorities());
resultAuth.setDetails(ud);
Any suggestion? Thanks....
OriginalPostID-84584
OriginalPostID-84584
Discussion posts and replies are publicly visible
Parents
0
Patty Isecke
Appian Employee
over 11 years ago
Hi sergio, instead of calling resultAuth.setDetails(ud), try resultAuth.setDetails(new AuthenticationDetails(request));
A custom authentication extension must be created in the following manner:
1. Create a custom authentication provider, or integrate an existing provider.
2. Create a custom authentication filter.
3. Configure the system to use your custom external authentication.
Check out the documentation for more information:
forum.appian.com/.../Authentication
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Patty Isecke
Appian Employee
over 11 years ago
Hi sergio, instead of calling resultAuth.setDetails(ud), try resultAuth.setDetails(new AuthenticationDetails(request));
A custom authentication extension must be created in the following manner:
1. Create a custom authentication provider, or integrate an existing provider.
2. Create a custom authentication filter.
3. Configure the system to use your custom external authentication.
Check out the documentation for more information:
forum.appian.com/.../Authentication
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data