API REST - GenerateToken with windows authentification

742
2
04-17-2020 06:30 AM
HamzaBoudemia
New Contributor II

Hi all,

I am trying to use generateToken with my arcgis portal.

I have two accounts : 

Account1 : user/password

Account2 : windows authentification

When I use the endpoint https://arcgisportal/portal/sharing/rest/generateToken with account1 (user/password), it generates me a valide token and it works fine

But I can not generate a token for my windows account, it indicates me that the username or password is invalid.

Do you know where is the problem ?

0 Kudos
2 Replies
HamzaBoudemia
New Contributor II

Bonjour,

p, si quelqu'un a déjà rencontré ce genre de problèmes.

Merci d'avance

0 Kudos
TJSimons
Esri Contributor

Hello Hamza Boudemia,

 

The Windows account should be able to generate a token.  Portal's identity store has to be updated to use Windows accounts and the account needs be added as a member to Portal.  If the account is not added as a member you would receive the "Invalid username or password" error.

 

Otherwise, it is likely that the username or password is incorrect.  The username needs to include the domain for Windows accounts.  Providing the username without the domain will return the "Invalid username or password" error.  The username can be formatted as DOMAIN\username or username@DOMAIN.

 

Best,

TJ

0 Kudos