Important Update: Some Community URL Redirects are Under Maintenance. Learn More. .

cancel
Showing results for 
Search instead for 
Did you mean: 

login API error

Thotakuta6
Contributor

Hello 

I'm trying to make a api call to get session token but i'm seeing InvalidCredential error and below is request and error message.


This user is admin account able to access in web application.
Request: https://**rsa.com/platformapi/core/security/login
body:

{
"InstanceName":"4****",
"Username":"****",
"UserDomain":"",
"Password":"*****"
}
response:
 
{
            "Reason""Validation",
            "Severity"3,
            "MessageKey""ValidationMessageTemplates:LoginNotValid",
            "Description""ValidationMessageTemplates:InvalidCredential",
            "Location"-1,
            "ErroredValue"null,
            "Validator""ArcherApi.Controllers.SecurityController, ArcherApi, Version=6.12.105.10047, Culture=neutral, PublicKeyToken=null",
            "XmlData"null,
            "ResourcedMessage"null
        }
 
please let me know if i'm missing anything 
 
Thank you.
 
Thotakura 
9 REPLIES 9

Anonymous
Not applicable

@Thotakuta6,

You can test out if your API working by @JeffLetterman tool: https://www.archerirm.community/t5/technical-tips-tricks/archer-api-templates-an-archer-application-to-quickly-test-the/ba-p/566337

That will also give you idea if your REST request lacking data.

Hello 
I'm trying to access  login endpoint in Postman and I'm trying to access with admin user even though i'm getting invalid credentials .

So i need to configure Archer API Templates Testing Tool must and should ?If i want to access login api end ?
https://**rsa.com/platformapi/core/security/login

 

Thanks

Anonymous
Not applicable

@Thotakuta6,

Archer API templates allows you to check if your REST API endpoints are working fine. They are working from Archer UI. Also this will allow you to check when kind of REST body requests you need.

If endpoints are correct your request is correct, then POSTMAN debugging would be the next step.

Thotakuta6
Contributor

Thank you for helping on this IIYA .

We added  Archer API Testing Tool package to our archer and I able to see useful tool options.
I  made login request and I 'm seeing same error message what I'm seeing in postman.
please once go through my attachment for request i made .

Thanks

Thotakura 

Anonymous
Not applicable

Well, at this point I would say, are you 100% sure on the INSTANCE and credentails?

Create local user again, do not define domain, LDAP, nothing, pure local and try again. Also, note that Instance name is case-sensitive.

Thotakuta6
Contributor

I though InstanceName is integer.
can i know where i can find my exact instance name please?.
I'm already trying with local account no luck .

Sorry for all questions 

Thanks

Thotakura

Thotakuta6
Contributor

Thank you for helping on this .

we created new user and we are able to access login api now.

Thanks

Thotakura

Anonymous
Not applicable

Anytime. Instance name can be found from your Archer Control Panel.

BodieMinster
Archer Employee
Archer Employee

You might get that response if you have configured SSO and disabled manual login.  Is that the case?