Hi @Kyrok ,
Thanks for reaching out.
It seems you are looking to authenticate in standalone system which does not rely on redirects and want to authenticate using linking code that is provided by Microsoft and can be entered into application via terminal interface.
This can be achieved using the Microsoft Identity Platform.
Here are the steps you can follow to set this up:
- Register your application in the Azure portal to obtain a client ID and client secret.
- Implement the "device code flow" in your application. This flow allows users to sign in by entering a code displayed in the terminal into a web browser.
- Send a request to the /devicecode endpoint to get a device code and user code, then display the user code in the terminal.
- Poll the token endpoint until the user has signed in and consented to the requested permissions. Hope this will help. Thanks,
- Shweta
- Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.