Options

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

  • Options
    timosman369timosman369 Member Posts: 16
    anyone?
  • Options
    JuhlJuhl Member Posts: 724
    Consuming an external API or the NAV Webservice?
    Follow me on my blog juhl.blog
  • Options
    timosman369timosman369 Member Posts: 16
    external API
  • Options
    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.
  • Options
    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.