OAuth
Describes a way to proceed with Microsoft OAuth via MSAL.
You MUST initialize an IPublicClientApplication via YOUR CLIENT ID before to use this!
Example
JELoginHandler with MSAL OAuth.
Interactive
Requests users to enter their Microsoft account. How the sign-in page is displayed is determined by the MSAL.
EmbeddedWebView
Prompts the user to enter their Microsoft account. Use WebView2 to display the login page.
SystemBrowser
Prompts the user to enter their Microsoft account. Open the system's default browser to display the sign-in page.
Silent
Attempts to sign in using the account information cached in the MSAL.
DeviceCode
Attempt to sign in using the DeviceCode method. This method doesn't require a web browser or UI on the client, but it does allow the client to log in from a different device.
If you're building a launcher that only works on the console or no GUI environment, use this method for login. The login can be done on a completely different device than the one running your launcher. For example, a user can log in from their mobile phone.
The example code outputs the following message to the console:
FromResult
Use MSAL authentication result.
Last updated