MVC user Authentication using Web API

2 posts, 0 answers
  1. KIM
    KIM avatar
    6 posts
    Member since:
    Jul 2014

    Posted 29 Oct 2014 Link to this post

    Hi Guys,

    I have built a WebAPI for user login, the webAPI can generate Access Token, if the user provided correct UserName and password. My Question is how I can pass user role information to the MVC application also.

    For example,

    I have a MVC app controller below, how can I pass the role 'Admin, UserEditor' from the Web API? I know I can use another WebAPI call to check user role, but it is not a good idea to do it. 

    ActionResult EditUser(int? Id)

    Best Regards,
  2. Petur Subev
    Petur Subev avatar
    1882 posts

    Posted 31 Oct 2014 Link to this post

    Hello Kim,

    The question that you does not seem to be related to the KendoUI framework but to general ASP.NET MVC development. Let us know if you have question regarding the Kendo UI framework.

    Kind Regards,
    Petur Subev

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top