OAuth

infonoteinfonote Member Posts: 233
edited 2015-02-09 in NAV Three Tier
Hi,

Has anyone coded in NAV using OAuth authentication?

Thanks in advance
Peter

Comments

  • timosman369timosman369 Member Posts: 16
    anyone?
  • JuhlJuhl Member Posts: 724
    Consuming an external API or the NAV Webservice?
    Follow me on my blog juhl.blog
  • timosman369timosman369 Member Posts: 16
    external API
  • EvREvR Member Posts: 178
    You can just use a .NET HttpClient.
    C#: HttpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "token");
    Rewrite it to c/al and off you go.
  • suraj92291suraj92291 Member Posts: 49
    C/AL : HttpClient.DefaultRequestHeaders.Add('authorization',"OAuth key");
    “Any fool can know. The point is to understand.”
    ― Albert Einstein
Sign In or Register to comment.