Example of Microservice to Microservice Authentication [C#/.NET]

Поділитися
Вставка
  • Опубліковано 9 вер 2023
  • Previous video where I explained the theory: • Authentication between...
    Video on Ocelot API Gateway: • How to build an API Ga...
    #csharp #dotnet #authentication #microservices
    My blog site: dotnetcorecentral.com
  • Наука та технологія

КОМЕНТАРІ • 11

  • @pradeeppradyumna601
    @pradeeppradyumna601 5 місяців тому

    I'm liking your content so far. Thank you so much for making short content videos. I have learnt many new things.
    Just wanted to add , in this video, I would have used ResouceFilter in Inventory API to extract from headers, so that I can keep controller code clean. Also then would use Authorize attribute on controller/ action methods to prevent access.

  • @abhi022007
    @abhi022007 8 місяців тому

    Your complete series about Microservices is really value addition. I really appreciate your efforts of creating such a simple but concept-clearing videos on each topic related to Microservice. Your way of explaning the concept is very clear which helped me to understand those concepts faster. Thank you so much. 🙂

  • @arupjena9207
    @arupjena9207 5 місяців тому +1

    Hi can you please explain. Can we send a token from auth-gateway to other microservices through the header and that should be validated.

  • @av7758
    @av7758 5 місяців тому +2

    But the example shared in the video, even if the user hit inventory and order service urls directly, they will work. I failed to understand how the authetication and authorization will work in inventory and order APIs.

    • @philipatha
      @philipatha 4 місяці тому +1

      Yea, this example is only useful as an additional "check" to ensure your API requests are coming from a centralized source (like a frontend) but from a security standpoint, this is unacceptable. Ideally the real auth should be a bearer token (where you could actually embed the proposed API key anyway) which then needs to get validated against the other microservices. That's what this video should have been about given the title.

    • @kunningdreamz
      @kunningdreamz Місяць тому

      Yes they will work, but It should have a Bearer token in the headers. This video doesn't show how to use Bearer token to authenticate downstream services and also how to use 'Bearer' as AuthenticationProviderKey in the ocelot.json

  • @systemsatyaki
    @systemsatyaki 8 місяців тому

    Hi, Can you please create a video for real-life examples of Database per service and how to fetch data from different database?

  • @sreenuksr
    @sreenuksr 9 місяців тому

    Nice

  • @user-lu7mm8bw1m
    @user-lu7mm8bw1m 2 місяці тому

    HI coud you share repo fron this video?

  • @theundaddy8037
    @theundaddy8037 4 дні тому

    Don't like this video, I expected information about microservices that execute periodic tasks and run under system accounts. It's obvious we can pass the context for the user, when we have it.
    Also, only the last 20 seconds actually talk about the Microservice -> Microservice authentication. The first 10 minutes are basically just a demo for what you talked in your previous video.