locked
Why apps are required to be registered. RRS feed

  • Question

  • before using the app in environment app has to be registered using AppRegNew.aspx. this screen gives client id that has to be configured in app manifest file. I am wondering what all sort of things SharePoint do when App is registered using this screen. Why do we need to registered the app?

    As per my knowledge app is first SharePoint artifacts that has to be registered before it actually deployed.



    Amit - Our life is short, so help others to grow.....

    Whenever you see a reply and if you think is helpful, click ♥Vote As Helpful♥ And whenever you see a reply being an answer to the question of the thread, click ♥Mark As Answer♥

    Sunday, July 28, 2013 8:44 AM

Answers

All replies

  • It generates app id, secret and it creates a new entry in the App Management Database inside the AppPrincipals table. 

    http://blogs.technet.com/b/speschka/archive/2013/02/18/when-do-your-apps-need-appregnew-aspx-in-sharepoint-2013.aspx


    val it: unit=()

    Sunday, July 28, 2013 11:13 PM
  • @Amit  The below one is the reason Why do we need to register the app?

    "For a remote app to be able to interact with SharePoint 2013 using OAuth, an app must first have an app identity.

    Developers can get an app identity for their app by registering their app. When you register your app, your app gets a client Id, client secret, display name, and app domain. In some cases, it also gets a redirect URI associated with it."

    http://msdn.microsoft.com/en-us/library/jj687469.aspx#fOverview


    My Blog- http://www.sharepoint-journey.com| Twitter
    If a post answers your question, please click "Mark As Answer" on that post and "Vote as Helpful

    Monday, July 29, 2013 3:56 AM
  • ok i got it thanks.

    just one confusion what is redirect url and how it is used in apps?


    Amit - Our life is short, so help others to grow.....

    Whenever you see a reply and if you think is helpful, click ♥Vote As Helpful♥ And whenever you see a reply being an answer to the question of the thread, click ♥Mark As Answer♥

    Monday, July 29, 2013 3:10 PM
  • The redirect URI(Redirect URL) is used by apps that request permission on the fly.

    "The redirect URI is an optional field for apps that are launched from SharePoint 2013. That is, if you are creating an app that is launched from SharePoint 2013, you can leave the field blank. You do not have to supply a redirect URI because the redirect URI is not used in this type of app. But, for apps that request permission to access SharePoint resources on the fly, the redirect URI field is a required field. If you are creating apps that request permission to access SharePoint resources on the fly, you must supply the redirect URI. The protocol must be HTTPS".

    Reference:

    http://msdn.microsoft.com/en-us/library/jj687470.aspx#RedirectURI


    My Blog- http://www.sharepoint-journey.com| Twitter
    If a post answers your question, please click "Mark As Answer" on that post and "Vote as Helpful

    Tuesday, July 30, 2013 12:17 AM
  • You have shared a very good link, thanks a lot. After reading this link I got good idea about the

    OAuth authentication too. Might be in next couple day you will get couple of questions around OAuth :-)

    Amit - Our life is short, so help others to grow.....

    Whenever you see a reply and if you think is helpful, click ♥Vote As Helpful♥ And whenever you see a reply being an answer to the question of the thread, click ♥Mark As Answer♥

    Tuesday, July 30, 2013 7:40 AM