Create custom authorization policy using func in asp net core

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

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

  • @venkataramakotibandaru9389
    @venkataramakotibandaru9389 5 лет назад +15

    Happy Teachers Day Venkat, you are my Tech Guru, Appreciate your efforts towards keeping IT Professional's up to date to the current market need.

    • @ivandrofly
      @ivandrofly 5 лет назад

      Didn't know about that...

  • @prosunchakraborty92
    @prosunchakraborty92 5 лет назад +7

    Happy Teacher's day sir. You r the best teacher and guru in my life. Thank You and God bless You sir.

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  5 лет назад +1

      Thank you Prosun. Means a lot. Feel greatly honoured with all of your wishes. All the best with everything.

  • @hamidrezayeganeh4219
    @hamidrezayeganeh4219 5 лет назад +3

    Hello Mr Venkat and thank you. You have the best channel in you tube and i am really really thanks. Please tech about partial view and passing data in and out.

  • @shmera55
    @shmera55 5 лет назад +5

    Happy Teachers Day, Venkat Sir !!!

  • @veeramanichinnathambi7374
    @veeramanichinnathambi7374 5 лет назад

    Dear Venkat, your videos are all simply awesome. Thank you so much for your immense contribution in technology.

  • @sairk6174
    @sairk6174 5 лет назад +4

    Venkat can we request you to make some vids on MICRO SERVICES ARCHITECTURE CONTAINER STUFF please??

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

    Thanks... It´s so Helpful excellent content

  • @priyankvashist4103
    @priyankvashist4103 4 года назад

    tooo good sir

  • @sairk6174
    @sairk6174 5 лет назад +2

    Thank you... VENKAT Garu..waiting for 100th episode..what NEXT??

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

    Thank you so much

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

    you have 10s of modules with large sets of permissions. how do you handle that ? Do you add everything in the addPolicy?

  • @conaxlearn8566
    @conaxlearn8566 4 года назад +1

    I do find it strange that the RequireRole and IsInRole methods both take a string of role name as parameter.
    The app will stop working if user goes to the Edit Role page and change the name of the roles.

  • @hassan4834
    @hassan4834 5 лет назад

    Please do add a lecture on partial views and Ajax/jQuery in this series.
    Thankyou

  • @dannybradley9346
    @dannybradley9346 4 года назад +1

    In my ListRoles.cshtml, the below code has the error "The name 'authorizationService' does not exist in the current context". How to fix this?
    @if ((await authorizationService.AuthorizeAsync(User, "EditRolePolicy")).Succeeded)
    {

    Edit

    }

    • @jayasantosh9787
      @jayasantosh9787 4 года назад +1

      i think you are not created instance named authorizationService for AuthorizeService class

  • @macgaikwad
    @macgaikwad 4 года назад

    In asp.net core mvc all the assigned claims of the user are send in the token to the browser? If yes then i have angular + dot net core web api and sending jwt token to the browser and my application authorization is based on claims (have more than 30 claims) not on role, so instead of creating policy for each claim can i put all the assigned claims of the user in the token (as roletype) and do like [Authorize(Roles = "edit patient")] on the controller method?
    Is it a correct way? Please reply,
    Thank you

  • @williamj.pintas9116
    @williamj.pintas9116 5 лет назад

    Is it possible to have a users role or claim update in the project without them logging out

  • @gkmishra2009
    @gkmishra2009 5 лет назад +1

    one interface have 10 method and in class A we want to use 5 method and another 5 method in class B how we achieve

    • @technicalcrackedinterviews4392
      @technicalcrackedinterviews4392 5 лет назад +1

      Hi Govind, According to me an interface which having 10 methods. and any two class which are inheriting same interface. then you have to give implementation of those 10 method which are defined in interface in both the classes.
      But you can achieve by interface segregation principle then you have keep 5-5 method in different different Interface.
      If you have better idea please suggest me.

  • @gkmishra2009
    @gkmishra2009 5 лет назад

    Can you Give Video on "MongoDB, Windows Service bus"