Forum Discussion

chenze's avatar
chenze
Ideator I
7 years ago

Innovator V12 REST Integration

Hello,

I suppose Innovator V12SP1 supports also REST integration. When I try an example in Postman, it returns the following error;

{
    "error": {
"code": "BadRequest",
        "message": "Value cannot be null.\r\nParameter name: loginName"
    }
}
In "Headers", I've set the AUTHUSER(admin), its MD5 AUTHPASSWORD(607920B64FE136F9AB2389E371852AF2), and DATABASE(InnovatorSolutions12), with the request:
So, what is maybe the reason of this error? Thanks for the answer
Best regards
chenze

7 Replies

  • Hi Chenze,

    I believe 12.0 removed the ability to authenticate directly through the headers like this. Instead, you'll need to request a token from the OAuthServer and authenticate using that token. You can check out this blog post on token authentication for some steps on how to do that. 

    Chris

    • chenze's avatar
      chenze
      Ideator I

      Many thanks Chris. It works now.

    • Bekzodbek_Kobilov's avatar
      Bekzodbek_Kobilov
      Ideator I

      Hi Christopher,

      i am getting the same error although i did an authentication. See the photo: 

      Error is 

      Can you help me with this?