Site-2-Site OAuth Authentication - From Scratch with C# and Business Central

Поделиться
HTML-код
  • Опубликовано: 21 окт 2024
  • Find more information at my blog www.hougaard.com or follow me on / ehougaard
    Source code can be found here: github.com/hou...

Комментарии • 34

  • @superhover
    @superhover 2 года назад +2

    God knows how far this is away from basic login/pass method. Thanks, Erik! :)

  • @Steve-jl2qv
    @Steve-jl2qv Год назад +1

    Excellent video - exactly what I needed to know. This video is much appreciated - thanks!

  • @btoz6237
    @btoz6237 2 года назад

    Excellent video Erik! Thank you ...

  • @ClanMcCormick
    @ClanMcCormick 2 года назад

    Well, this is a timely video! ;)
    good work Erik

  • @alainkrikilion5444
    @alainkrikilion5444 2 года назад +3

    Interesting. I also have seen it some examples in some other languages. But the only 2 I am really missing are assembler and (more importantly) AL. Maybe you could also do a video on that (AL that is, although I would be curious to see it implemented in assembler...)? It is always for calling BC. But if I am in BC and I need to call another BC?

    • @Hougaard
      @Hougaard  2 года назад +1

      BC to BC is relevant for Intercompany...

    • @maartengerritsen
      @maartengerritsen 2 года назад

      BC to BC and for developing/testing BC on docker?

  • @lk75yt
    @lk75yt 2 года назад

    This is the stuff I really need right now! Thank you very much!

  • @paulojsc
    @paulojsc 2 года назад +2

    Hi. Thanks for this! I think it would be interesting to have a video with examples for Onprem version and for webservices.

    • @ecommerce1926
      @ecommerce1926 2 года назад

      you can use basic authentication for on-prem web services. Check this video by Erik Hougaard ruclips.net/video/GUw9C1mILMY/видео.html

  • @matthiasra1806
    @matthiasra1806 2 года назад

    Very straight forward, great video 👍

  • @ivanzaliscky3143
    @ivanzaliscky3143 Год назад

    I did not understand part with URL (variable named URL2). How we must form it ?

  • @qazwsxedcrfvtgb532
    @qazwsxedcrfvtgb532 2 года назад

    Hello Erik, want to ask whether the environment name (e.g. Sandbox, Sandbox2) will affect the bearer token request URL?

    • @Hougaard
      @Hougaard  2 года назад

      Nope, not a all.

  • @saurabhtalele1537
    @saurabhtalele1537 Год назад

    cool..i am just surprise!!! hey sir can i reduce number of BC license required per user....as though they needed but don't want to pay for it....

    • @Hougaard
      @Hougaard  Год назад +1

      No, you're not allowed to circumvent the license agreement with the th API access

  • @amsdasmaity
    @amsdasmaity 2 года назад

    Hello Erik, I have tried the same, but got an error msg "StatusCode: 400, ReasonPhrase: 'Bad Request', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent,...." Please help me how to solve this.

    • @Hougaard
      @Hougaard  2 года назад

      Bad request mean that you did/send something wrong...

  • @larskroghreinholdt6929
    @larskroghreinholdt6929 2 года назад

    Hi Erik
    Very nice video.
    But it would nice to see how it works with SOAP webservices.
    Getting an access token is no problem, but how do we send it to a BC SOAP web service??

    • @Hougaard
      @Hougaard  2 года назад

      That depends on what soap framework you're using? Are you using WCF?

    • @larskroghreinholdt6929
      @larskroghreinholdt6929 2 года назад

      @@Hougaard Yes, we're using the WCF framework

    • @Hougaard
      @Hougaard  2 года назад +1

      I'll put that on the list..

  • @travelworklife717
    @travelworklife717 2 года назад

    How do you handle refresh token/token got expired scenario?

    • @Hougaard
      @Hougaard  2 года назад +1

      Depends, most cases, I simple get a token each time and never care about. Some cases I have a loop around the main ws call and if the token is expired I get a new one.

  •  2 года назад

    Really interesting.
    Couod you, please, reproduce it on PostMan?
    Thnx.

    • @Hougaard
      @Hougaard  2 года назад +1

      Don't count on it :) (Not a huge PostMan fan/user)

  • @weinicht1953
    @weinicht1953 2 года назад

    Nice one, thanks :) could you please do a video on how to create a custom bc webhook and use it within your external App (c# command line App)? Would be very intersting to see how you get recently modified data (eg. Credit Limit Field on the Customer).

    • @weinicht1953
      @weinicht1953 2 года назад

      I mean only get Customer data where credit Limit value has changed (get old and new value)

    • @Hougaard
      @Hougaard  2 года назад

      That's not how BC webhooks works, check this: docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v1.0/dynamics_subscriptions

    • @weinicht1953
      @weinicht1953 2 года назад

      So how can you tell what has changed from what value to the new one? Or do BC webhooks only tell you that something has changed??

  • @saurabhtalele1537
    @saurabhtalele1537 Год назад

    cool thing is no redirect url🥰

  • @ecommerce1926
    @ecommerce1926 2 года назад

    How to get token using interactive method (Ask username and password)

    • @ecommerce1926
      @ecommerce1926 2 года назад

      it would be interesting to have a video with examples for get token using interactive method

  • @DmitryKatson
    @DmitryKatson 2 года назад

    👍