This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Rest API on 7.1 cannot authenticate

Hi all,

I'm trying to access my IM through web  API:

if I get  appserver/authmodules

it returns

 
Id Caption Password Based Is Default
RoleBasedManualADS Active Directory user account (manual input/role based) false false
RoleBasedADSAccount Active Directory user account (role based) false false
DialogUser System user false true
RoleBasedPerson Employee (role based) false false
ADSAccount Active Directory user account false false
DynamicPerson Employee (dynamic) false false

I'm trying to use the DialogUser method

in the follow way:

calling auth/apphost

with in the body the following json as decribed in the documentation:

{"authString":"Module=DialogUser;User=*SystemUsername*;Password=*SystemUserPassword*"}

 

but I get a 401 - Unauthorized: Access is denied due to invalid credentials

 but the user is an admin user and has all the privileges.

Should I enabled the user to something?

 

Thanks Mik

Parents
  • The authentication part would be there even without 1IM. This i windows security behaviour when trying to access ressources in domain A while using a user from an untrusted domain B. So you've to find a way to add authentication to your tool you're using. As this is far beyond from 1IM i'd suggest reaching out to the tool support or if you're developing the solution using Java research in the java developer docs on how to handle windows authentication.
    You've got no issue with 1IM or the 1IM application server, all you're trouble is around basic windows behaviour.
Reply
  • The authentication part would be there even without 1IM. This i windows security behaviour when trying to access ressources in domain A while using a user from an untrusted domain B. So you've to find a way to add authentication to your tool you're using. As this is far beyond from 1IM i'd suggest reaching out to the tool support or if you're developing the solution using Java research in the java developer docs on how to handle windows authentication.
    You've got no issue with 1IM or the 1IM application server, all you're trouble is around basic windows behaviour.
Children
No Data