# Microsoft

## Register Oauth2 applications

Follow the next link:

{% embed url="<https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade>" %}
Azure portal
{% endembed %}

![+ New registration](https://1411580035-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me086OvqXe7INvy2ZEb%2FApp_registrations_-_Microsoft_Azure.png?alt=media\&token=05e15537-ac5b-4930-875d-3ce557989f35)

![](https://1411580035-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0AgG8gMSaG42MXBG7%2FRegister_an_application_-_Microsoft_Azure.png?alt=media\&token=84e40b34-ca1f-4dd6-9cb2-99bc87af9243)

#### OneDrive file picker

You need to register one more URL in order to use the OneDrive Javascript file picker:

![](https://1411580035-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0DmB4CqpOSVsNAwZ9%2FACME_-_Microsoft_Azure.png?alt=media\&token=fbe1f501-4195-490a-8076-fa2d910dc436)

<figure><img src="https://1411580035-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2wQccpxu7ZEfAoEgdnOc%2Fuploads%2Fd5lNCjozEKUr92YUkudH%2FACME_-_Microsoft_Azure.png?alt=media&#x26;token=17c00ad5-1fb0-46e7-9821-52ba8390366f" alt=""><figcaption><p>/plugins/appmixer/microsoft/onedrive/picker</p></figcaption></figure>

And select both of these options:

![](https://1411580035-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0EcbcFpuIZiAe-1Pw%2FACME_-_Microsoft_Azure.png?alt=media\&token=38ec12f5-ac07-4107-bcd6-f4ab6c3b242a)

And save the changes:

![](https://1411580035-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LATDgYqVMe0hChW7efU%2F-Me9foQVmsFk9IK2R8M7%2F-Me9jyacVos8KJY5e6ZY%2FACME_-_Microsoft_Azure.png?alt=media\&token=6ea62596-3850-4d2b-bc54-de7053ae9338)

The next step is creating *clientId* and *clientSecret*:

![Add new client secret](https://1411580035-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0edFoox-LXjNDTW9x%2FACME_-_Microsoft_Azure.png?alt=media\&token=0b6432f1-a8cf-4438-ac69-8570331bc78c)

Unfortunately, the secret has an expiration, you're going to have to create a new one in 2 years:

![](https://1411580035-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0fERE8BWiv_w1qiw4%2FAdd_a_client_secret_-_Microsoft_Azure.png?alt=media\&token=159588b9-6519-4961-ae32-944d7fa47102)

Use the furthest date possible:

![](https://1411580035-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0faf_vLUp9_AtUPIg%2FAdd_a_client_secret_-_Microsoft_Azure.png?alt=media\&token=626539c9-043f-4932-b95d-4786aaf25cfd)

You will get a new secret, copy the *Value* into the clipboard:

![](https://1411580035-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0yNicp1O-ZdEelIhG%2FACME_-_Microsoft_Azure.png?alt=media\&token=33f739b7-57cb-435a-b565-fd85fa9dfa2e)

This is the *clientSecret,* the Microsoft *Secret ID* is the Appmixer *clientId.* These secrets need to be added into the Backoffice:

![](https://1411580035-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0gWY77SvV4q3zRvTB%2FAppmixer_Backoffice_-_Service_Configuration.png?alt=media\&token=42510cc9-61cf-43ca-95d5-40adcf508bb9)

![appmixer:microsofr](https://1411580035-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0gsiPbSjr_GheayYU%2FAppmixer_Backoffice_-_Service_Configuration.png?alt=media\&token=1f691ec0-7587-4573-83ea-40d24404777e)

And add new keys:

![](https://1411580035-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0h12Mt-dLWLUOoEN-%2FAppmixer_Backoffice_-_Service_Configuration.png?alt=media\&token=6c78e3a9-77f3-44f5-9410-3258e7d21da5)

The *clientId* is the *Application (client) ID f*rom the main page:

![](https://1411580035-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0z406TOEWZFwi30Ax%2FAppmixer_QA_-_Microsoft_Azure.png?alt=media\&token=88e0ba4c-9004-4dbe-a89a-3c3360a5b1f5)

![](https://1411580035-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0zeOSWIvK55Dasixf%2FAppmixer_Backoffice_-_Service_Configuration.png?alt=media\&token=c4a9c804-8160-4748-ac06-359d859d05a2)

Then go to the *API permissions* section:

![](https://1411580035-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0jEMswr6GsHVP9oqS%2FACME_-_Microsoft_Azure.png?alt=media\&token=e73014fd-4f63-4f30-8a55-8a25597b4c82)

Choose *Microsoft Graph*:

![](https://1411580035-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0jRoK8hF4Pk4A5A7m%2FRequest_API_permissions_-_Microsoft_Azure.png?alt=media\&token=dbd8bd5f-7dca-45ef-9458-66def3750f67)

Delegated permissions:

![](https://1411580035-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0jaCe9HO_iWvxFA0J%2FRequest_API_permissions_-_Microsoft_Azure.png?alt=media\&token=b456879b-c9fa-42d6-a802-d2a64551438b)

Type-in *Files*:

![](https://1411580035-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0jmcYVvKxrPq44fqj%2FRequest_API_permissions_-_Microsoft_Azure.png?alt=media\&token=c8ac0f9d-669e-4672-976f-96abfc38c3c8)

And select these two:

![](https://1411580035-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0k-yXGQD5RqEw9MNR%2FRequest_API_permissions_-_Microsoft_Azure.png?alt=media\&token=88f0be9d-1d8f-4bfc-995a-a40d2c929ea6)

Then type-in *offline* and select this permission:

![](https://1411580035-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0kGZtdJFKq04K5lUZ%2FRequest_API_permissions_-_Microsoft_Azure.png?alt=media\&token=f24a0b47-396d-4889-a846-fa68922b730b)

![](https://1411580035-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me0oxHuMI13WQSXipDh%2FRequest_API_permissions_-_Microsoft_Azure.png?alt=media\&token=10e8e312-4cf7-4d19-9c59-edccdb98a865)

The final set of permissions:

![](https://1411580035-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LATDgYqVMe0hChW7efU%2F-Me06diX3RHAQ7olKuMS%2F-Me1418HBBeF-9brHZtd%2FNotification_Center.png?alt=media\&token=19e858f1-c384-46f3-bf36-56f2791875b5)
