You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I investigated how-to but didn't go through the entire process. Some understanding comes from my prior experience, too. And the process can be a bit complicated.
To start, we go for the app-only access. These steps should be:
Register a dev Microsoft account.
Navigate to Microsoft Entra admin center and login. Then we create an application for OpenDAL in CI to access the dev account files.
Go to Applications - App registrations
Enroll in the M365 Developer Program or sign up for Azure with the dev account from 1.
Hey, based on the review comment #5632, I add this issue for setting up behavior tests for OneDrive in the CI.
This requires a bit admin work, mainly with Microsoft Entra ID.
I investigated how-to but didn't go through the entire process. Some understanding comes from my prior experience, too. And the process can be a bit complicated.
To start, we go for the app-only access. These steps should be:
Register a dev Microsoft account.
Navigate to Microsoft Entra admin center and login. Then we create an application for OpenDAL in CI to access the dev account files.
Go to Applications - App registrations
Enroll in the M365 Developer Program or sign up for Azure with the dev account from 1.
Register an application
Obtain
Application (client) ID
andclient secrets
.Configure Platform Settings,
desktop application
type should work. If not, we can revise.Now OAuth 2.0 flow. Read here.
Now configure permissions for Microsoft Graph, go to the application's API permissions page
Add a permission, select "Files.ReadWrite".
Go to Microsoft Entra admin center and find the application (in "Applications").
You should be able to find admin consent with a few clicks and navigations.
Validate if you can get a token:
// Line breaks are for legibility only.
POST https://login.microsoftonline.com/common/oauth2/v2.0/token HTTP/1.1
Host: login.microsoftonline.com
Content-Type: application/x-www-form-urlencoded
client_id=535fb089-9ff3-47b6-9bfb-4f1264799865
&scope=https%3A%2F%2Fgraph.microsoft.com%2F.default
&client_secret=qWgdYA....L1qKv5bPX
&grant_type=client_credentials
Store credentials to 1Password.
The workflow should be somewhat straightforward:
Open question
What about supporting the auth and refresh token for OneDrive service?
IMO, this can wait as the access token is enough to test. Authentication, once set up, is trivial.
The text was updated successfully, but these errors were encountered: