First, you need to enable Single Sign-On in Administration » Applications and follow the next steps to setup office365 login:
- Create an app in App registrations section;
- Enter redirect URL in Authentication section of your app. Redirect url you can found in Administration » Applications » Single Sign-On » Settings » OAuth method in OnsiteSupport:
- Generate secret key in Certificates & secrets section of your app
- In Oauth settings enter Client ID and Client Secret of your app.
Other settings:
- Scopes: user.read
- Authorize Endpoint: https://login.microsoftonline.com/common/oauth2/v2.0/authorize
- Access Token Endpoint: https://login.microsoftonline.com/common/oauth2/v2.0/token
- User Info endpoint: https://graph.microsoft.com/v1.0/me
- User Id mapping: id
- Email Mapping: userPrincipalName
- Full Name Mapping: displayName