The application solution you designed inside the application registration portal for your app. You should not use the application magic formula in a native app or single page app because a client_secret can't be reliably saved on products or web pages. It truly is demanded for Net applications and Net APIs, that may shop the client_secret securely