Applies to: Enterprise notebooks on Office 365
-->
To authenticate using Azure AD (enterprise apps):
Office 365 customers get the new Office for Mac first. You’ll have Office applications on your Mac or PC, apps on tablets and smartphones for when you're on the. Activate MS Office 2019/2016 for macOS - MicrosoftOffice2019VLSerializer Office 2019 above. Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate. Choose the OneNote application, and then click the check mark in the lower-right corner. If OneNote isn't listed, make sure you've provisioned OneDrive for Business for your tenant. Choose the lowest level of application permissions that your app needs to do its work, and save your changes. You can request multiple scopes.
Register your application and get a client ID and secret (enterprise apps)
See Register your application and get a client ID and secret.
Choose OneNote application permission scopes (enterprise apps)
Permission scopes represent levels of access to OneNote content. An application permission is granted to an application by an organization's administrator, and can be used only to access data owned by that organization and its employees. For example, the OneNote API exposes several application permissions to do the following:
Follow these steps to assign OneNote application permissions to your app:
Scopes for application permissions
If you're accessing notebooks using application permissions, choose from the following scopes.
Obtain administrator consentRecommended: Sign the user in to your app
Typically, when you build an application that uses application permissions, the app requires a page or view on which the admin approves the app's permissions. Lync client for mac. This page can be part of the app's sign-in flow, part of the app's settings, or it can be a dedicated 'connect' flow. In many cases, it makes sense for the app to show this 'connect' view only after a user has signed in with a work or school Microsoft account.
If you sign the user in to your app, you can identify the organization to which the user belongs before you ask the user to approve the application permissions. Although not strictly necessary, it can help you create a more intuitive experience for your users. To sign the user in, follow our v2.0 protocol tutorials.
Request the permissions from a directory admin
When you're ready to request permissions from the organization's admin, you can redirect the user to the admin consent endpoint. You can make the API call such as the following:
You can also try the above request in a browser, type the following URL into your browser's address bar (make a valid URL following these instructions).
This table describes the parameters used in the previous request:
You will be presented with an admin consent dialog that you can go ahead and approve.
Successful response
If the admin approves the permissions for your application, the successful response looks like this:
This table describes the values returned in the previous response:
Microsoft Onenote Mac The Authentication Session Has Expired 2017Error response
If the admin does not approve the permissions for your application, the failed response looks like this:
This table describes the values returned in the previous response:
After you've received a successful response from the app provisioning endpoint, your app has gained the direct application permissions that it requested. Now you can request a token for the resource that you want.
Note
Get an access token (enterprise apps)
After you've acquired the necessary authorization for your application, proceed with acquiring access tokens for APIs.
Microsoft word keeps crashing mac 2017. To get a token by using the client credentials grant, send a POST request such as the following:
This table describes the parameters used in the previous request:
Successful response
A successful response looks like this:
This table describes the values used in the previous request:
Error response
An error response looks like this (in this example, an invalid value for client_secret is provided in the request):
This table describes the values used in the previous request:
Include the access token in your request to the OneNote API
All your requests to the OneNote API must send the access token as a bearer token in the Authorization header. For example, the following request gets five of your notebooks, sorted alphabetically by name:
Access tokens are only valid for an hour, so you'll need to get fresh tokens when they expire. You should check the token's expiration before using it, and get a new access token if needed. Admins don't have to consent to permissions again unless they revoke permissions.
Get a new access token after it expires (enterprise apps)
When an access token expires, requests to the API return a
401 Unauthorized response. Your app should handle this response and check the token expiration before sending requests.
You can request a new access token by repeating the process described in the section Get an access token earlier in this topic.
Microsoft Onenote Mac The Authentication Session Has Expired Registration
Update your stored tokens to ensure that your app has tokens with the longest lifespan.
Microsoft Onenote Mac The Authentication Session Has Expired FreeErrors
If there are errors with authentication, the web browser is redirected to an error page. The error page presents an end-user friendly message, but the URL for the page includes additional parameters that may help you debug what happened. The URL parameters are included as a bookmark, for example:
#error={error_code}&error_description={message}
If the admin chooses not to provide consent to your application, the flow will redirect to your redirect URL and include the error parameters.
For detailed information about handling errors, see Error Handling in OAuth 2.0.
Microsoft Onenote Mac The Authentication Session Has Expired FreeSee alsoComments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |