The applying solution that you created while in the app registration portal for the app. Will not use the application solution in a local app or single site app because a client_secret can't be reliably saved on units or Websites. It is really necessary for World-wide-web applications and World-wide-web APIs, that may keep the client_secret securel