Developing Apps for SharePoint 2013
Understanding SharePoint Apps, authentication and authorization infrastructure in SP 2013 / SharePoint Online - Zvonimir Mavretic