-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: experimental transfer sharepoint authentication to AzureAD #326
base: main
Are you sure you want to change the base?
Conversation
permissions_config = SharepointPermissionsConfig( | ||
permissions_application_id=None, | ||
permissions_tenant=tenant, | ||
permissions_client_cred=None, # or SecretStr(...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we provide with a value for permissions_client_cred and permissions_application_id here? otherwise this integration test would fail in CI pipeline
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It won't actually fail (and it doesn't) as this connector can work in 2 modes, either with or without permissions. There's a separate e2e test for that in the test_e2e/dest/sharepoint.sh and sharepoint_with_permissions.sh
) | ||
token_result = app.acquire_token_for_client( | ||
scopes=[ | ||
f"https://{self.permissions_config.permissions_tenant}.sharepoint.com/.default" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when I use SHAREPOINT_PERMISSIONS_TENANT value in Keeper, this line reports an error. After I remove the second part of the string and only keeps the first part, it works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might need a little more explanation on this not sure which part do you mean? Like it works without the /.default/ but it doesn't with it?
on the platform UI, what's differences between permissions and AccessConfig? Aren't both of them shown on the UI? |
Unfortunately there's no permission config to be setup in the UI. All I need is tenant for this to work. Actually you indirectly input a tenant when you give link to the proper site, I was wondering if simple copy that info to tenant wouldn't work. In tests it's exactly like that. |
Refined authentication method to get rid of deprecated login/password with sharepoint client in favour of EntraID auth.