Microsoft Login ================================================== Login with a Microsoft Account requires a Web browser and a Azure Application. ------------------------- Create Azure Application ------------------------- To login with Microsoft you need to create a Azure Application first. Follow `this tutorial `_ to create one. You need the Clinet ID, the Secret and the redirect URL of your new Application. ------------------------- Apply for Permission ------------------------- As stated `here `_, new created Azure Apps need to apply for Permission using `this Form `_ before they can use the Minecraft API. Apps that have been created before this change keeps working without a chance. :func:`~minecraft_launcher_lib.microsoft_account.complete_login` will raise a :class:`~minecraft_launcher_lib.exceptions.AzureAppNotPermitted` Exception if your App don't have the Permission to use the Minecraft API. If you get any other Exception, that probably means something else with your Azure App is not right. ------------------------- Let the User log in ------------------------- The login happens in a Web browser. This can be the normal Browser of the System or a Browser Widget embed in your Program. To get the url that is used for the login use minecraft_launcher_lib.microsoft_account.get_login_url(client_id: str, redirect_uri: str). Open the URL and test if you can login. After you've logged in you will be redirected to :code:`https://?code=codegoeshere&state=