This Demo explains how to use the Microsoft Login Connector and showcases 3 possible scenarios and ways to implement them.
First scenario only supporting Login with Microsoft Credentials. Second supporting both normal Login and Login with Microsoft Credentials and the third not using Login with Microsoft, but needing the Token to access Microsoft Rest APIs.
Bear in mind that this is only a way to do it.
Feedback is very welcome.
Updated for updates in dependencies