authorize wcf odata v3 service

2 posts, 0 answers
  1. Maor
    Maor avatar
    50 posts
    Member since:
    Dec 2012

    Posted 23 Oct 2013 Link to this post

    hi guys.
     is there a simple way to do that? i consume the service with my mobile app and i need that the service will return nothing when user is not authenticate to earlier in server.
    in one of my  other projects, i use the openaccess web api web service with <authorize()> attribute before the controller class code and it works. 
    in wcf, i try to do the same with no success.

    regards
    maor
  2. Viktor Zhivkov
    Admin
    Viktor Zhivkov avatar
    291 posts

    Posted 23 Oct 2013 Link to this post

    Hello Maor,

    Authentication and Authorization for services is quite huge topic and there are many subtle details that should be taken in account in order to implement the right solution.
    Data Services generated by Add OpenAccess Service wizard are not different than the ones that you can generate following the guidance from Microsoft so I suggest that you check these sets of articles to see which scenario described there matches your specific needs:
    I hope that these resource will help you achieve the results you wanted. If you need any further assistance you can write back to us your questions.

    Regards,
    Viktor Zhivkov
    Telerik
    OpenAccess ORM Q3 2013 Beta is available for immediate download in your account. Get it now and play with the latest bits. See what's new >>
  3. DevCraft banner
Back to Top