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
3 replies
Subscribers
8 subscribers
Views
1255 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Administration
Hi, Our application has two modules/components. One is Appian, and second
ganeshl
over 10 years ago
Hi,
Our application has two modules/components. One is Appian, and second is a portal written in .NET. We have all our users in the Appian. For authentication in .NET portal we wanted to use users from Appian environment.
As we don’t have any WS api with Appian for this, we decided to write an axis plugin which exposes a service with a single method called “authenticate”, taking username and password as parameters. If credential succeeds, we fetch and return the user groups. If it fails, we throw custom exception.
Now, all this is working fine on my local Appian 7.3 environment. But it always fails on actual DEV environment which is behind proxy with SSL, and LDAP authentication configured.
Why same code works in local and not DEV env? What may be missing here? Please advise?
Here is actual code:
public List<String> authenticate(String username, String password) throws AuthenticationException {
SpringUtils utils = new SpringUtils(); //com.app...
OriginalPostID-95955
OriginalPostID-95955
Discussion posts and replies are publicly visible
0
ganeshl
over 10 years ago
...iancorp.plugins.spring.SpringUtils
if (utils.authenticate(username, password)) {
ServiceContext sc_= ServiceContextFactory.getServiceContext(username);
//Next code to fetch user groups is skipped
} else {
throw new AuthenticationException(username);
}
}
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tim Nguyen
Appian Employee
over 10 years ago
Base on the information provided, the issue may be in the LDAP configuration.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ganeshl
over 10 years ago
Thanks Tim. But with apps mode we can login with these credentials. Then why may same credential fail via API as used above? Is this correct way?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel