Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am creating an autohosted SharePoint app. There are tons of really good articles out there that explains how to get started.

Unfortunately, I haven't find any article/tutorial yet which explains how to secure the actual Azure hosted app.

Basically, I have created an ASP .Net MVC 4 based autohosted app. To start with, the Web project has the Anonymous Authentication enabled.
Due to this, anyone who knows the *.o365apps.net url of the app can access the app functionality.

But, I would only like to allow the users registered in our Office 365 SharePoint site to have access of the app.

It would be really great to redirect users to O365 site to log-in and then redirect them back to the app. What would be the best way to achieve this functionality?

I would really appreciate if you can please point me to the right direction :)

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.