{% hint style="success" %}
You may supply the client_id
and client_secret
to PlaceOS or your PlaceOS Integration Partner to complete these steps.
{% endhint %}
- PlaceOS Backoffice Administrator Access
- Microsoft Azure App Registration
client_id
andclient_secret
generated in the Microsoft Azure App Registration steps.
- In PlaceOS Backoffice navigate to the Domains tab.
- Select the domain you would like to add Microsoft Authentication to.
- Click the Authentication Tab.
- Identify the OAuth Source previously created.
- Click the Edit Icon.
- Update missing fields per the table below.
These fields are specific to the OAuth2 provider and tend to differ slightly between providers.
Details on how Azure handles OAuth2 will be used to describe the following fields.
PlaceOS Field | Requirement |
---|---|
name |
A friendly name for this authentication configuration. |
client_id |
The Client ID provided by Microsoft Azure App Registration. |
client_secret |
The Secret created in the Microsoft Azure App Registration. |
site |
This should be set to: `https://login.microsoftonline.com ` |
scope |
The scopes, space separated, for the APIs that are intended to be accessed
|
token_method |
Azure uses a POST to obtain a token |
authentication_scheme |
Request Body |
token_url |
The URL to obtain a token from, Azures is:
|
authorize_url |
The URL that initialises the OAuth2 request:
|
user_profile_url |
The URL we can use to test the OAuth2 token and obtain user details: |
info_mappings |
This maps PlaceOS fields to User Profile fields (see below).
|
Once you have completed the above steps, you will also need to create a StaffAPI Record for your domain.
To create the Staff API Record follow these instructions on configuring Staff API.