-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
Using certificate as client credentials without specifying the certificate path #495
Comments
@vgrem can you please answer this question for me? |
Hey @vietluu-collab, Regarding
at the moment Anyway, the following approach (workaround) could be considered atm:
Here is a minimal example:
|
@vgrem thank you very much. I will try.this |
@vietluu-collab Did you ever get this working? I need to do something similar. my certificate also has a passphrase. Any ideas how to incorporate that as well? @vgrem |
@bep-droid this solution worked for me.
Thanks @vgrem for your example, much appreciated. |
@vgrem any plans to implement this into main branch? |
Hey @niltecedu, since 2.3.15 version version it is supported to pass private_key as a string:
Similar thread #568 |
Hi,
i was talking about the passphrase addition
…On Wed, 22 Feb 2023 at 11:20 pm, Vadim Gremyachev ***@***.***> wrote:
Hey @niltecedu <https://github.com/niltecedu>,
since 2.3.15 version
<https://github.com/vgrem/Office365-REST-Python-Client/releases/tag/2.3.15>
version it is supported to pass private_key as a string:
cert_path = 'selfsigncert.pem'
with open(cert_path, 'r') as f:
private_key = open(cert_path).read()
cert_credentials = {
'tenant': test_tenant,
'client_id': '--client id--',
'thumbprint': '--thumbprint--',
'private_key': private_key
}
ctx = ClientContext(test_team_site_url).
Similar thread #568
<#568>
—
Reply to this email directly, view it on GitHub
<#495 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJZ3KIGBZRZ5J2O7C6AGDLDWY2NLBANCNFSM5SI6WAEA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hello everyone. I am making trying to move my data flow to cloud and I am trying to grant access using the below link.
https://youtu.be/kpDs4Xgb_z8
From 2:02, the speaker in the video said that client secret is not supported for sharepoint api. That means I need to log in using certificate. However, when connecting with certificate, according to what I've read, local path to where to certificate is installed is required. But I want to build a logic app with all components "on the cloud" meaning nothing will be installed.on the local machine. My question is that is there a.way to connect without using the path of certificate. I am thinking of using the pfx value but I donnot know the code. Can you guys show me the code?
The text was updated successfully, but these errors were encountered: