Data Access and ASP.net Identity 2.0

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

    Posted 27 Aug 2014 Link to this post

    Hi Guys,

    I am new in this area. I have tried to search related tutorials example. Unfortunately, there are not  those  practice online. If you have any related topics or tutorial or video, can you left the link here? I will be grateful.

    Currently, I want to integrate Data Access with ASP.net Identity 2.0, and I am not sure how to do it.
  2. Kristian Nikolov
    Admin
    Kristian Nikolov avatar
    206 posts

    Posted 29 Aug 2014 Link to this post

    Hi KIM,

    Thank you for contacting us.

    ASP.NET Identity 2.0 can be extended with custom storage. This article explains the general process of how this can be achieved.

    On the Telerik Data Access side, you will have to create a Domain Model or a Fluent Model with the required persistent classes such as Users, Roles and more. Based on the aforementioned tutorial, the persistent classes will have to implement specific interfaces such as IUser. You can achieve this by adding a partial definition of the persistent classes in a separate code file to add the interface implementation statement. You should then be able to create custom store classes (as shown in the tutorial) that would use your Telerik Data Access model.

    Note that as it appears that the store class methods are asynchronously called, it might be a good idea to enable the Multithreaded Context option.

    I hope this helps. If you have additional questions or need help, feel free to get back to us.

    Regards,
    Kristian Nikolov
    Telerik
     
    OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
     
  3. DevCraft banner
  4. KIM
    KIM avatar
    6 posts
    Member since:
    Jul 2014

    Posted 24 Oct 2014 in reply to Kristian Nikolov Link to this post

    Hi ,

    I am sorry to reply you late.  Thanks your suggestions

    I have followed the the link to create a customized UserStore.  Then I got problem,   How can I make the OwinContext work with OpenAccessContext

    Best Regards,
    KIM
  5. Kristian Nikolov
    Admin
    Kristian Nikolov avatar
    206 posts

    Posted 27 Oct 2014 Link to this post

    Hi KIM,

    Currently we are unsure of the exact scenario you are facing. Could you please provide us with the following details:
    1. What is the exact situation where you need to integrate TlerikOpenAccessContext with OwinContext, and what is the functionality you need to achieve by doing so?
    2. Are you experiencing any sort of exception and if so what is it?
    3. If the problem at hand is related to a specific step of the Custom Storage Providers tutorial please tell us which one?

    This information should help us gain better understanding of your scenario.

    We are looking forward to your feedback.

    Regards,
    Kristian Nikolov
    Telerik
     
    OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
     
  6. Kristian Nikolov
    Admin
    Kristian Nikolov avatar
    206 posts

    Posted 30 Oct 2014 Link to this post

    Hi KIM,

    We are sorry for the inconvenience you have experienced. We have notified the team responsible for the respective sites about the issues.

    Regarding your question, the CreatePerOwinCotnext method expects a method which would instantiate some an object of certain type, in your scenario this type would be the context of your model. Such method is not provided out of the box so you will have to manually implement it as per your requirements. Currently it appears that a method that just returns a new instance of the model`s context may be sufficient (using the first overload of CreatePerOwinContext).

    On another note, one of our users has developed an open source identity provider for ASP.NET Identity 2.x using Telerik Data Access. For more information please refer to this forum thread where he has posted a reference to the library and a link to a blog post with a description of how it can be used.

    I hope this helps. Should you have further questions feel free to get back to us.

    Regards,
    Kristian Nikolov
    Telerik
     
    OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
     
Back to Top
DevCraft banner