-
Notifications
You must be signed in to change notification settings - Fork 6
EDGE-613 Fix Cognite client certificate auth #544
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
Changes from 1 commit
66e98ff
0d37f91
8bd8b0a
19887a7
bd5d815
7ce96d1
d779263
012f110
4bb2609
ea8fff6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -444,8 +444,8 @@ def get_cognite_client( | |||||||||
| credential_provider = OAuthClientCertificate( | ||||||||||
| authority_url=authority_url, | ||||||||||
| client_id=self.idp_authentication.client_id, | ||||||||||
| cert_thumbprint=str(thumprint), | ||||||||||
| certificate=str(key), | ||||||||||
| cert_thumbprint=str(thumprint, "utf-8"), | ||||||||||
| certificate=str(key, "utf-8"), | ||||||||||
|
Comment on lines
+447
to
+448
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. as the functionality remains same for |
||||||||||
| scopes=self.idp_authentication.scopes, | ||||||||||
| ) | ||||||||||
|
|
||||||||||
|
|
||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -328,8 +328,8 @@ def get_cognite_client(self, client_name: str) -> CogniteClient: | |||||||||
| credential_provider = OAuthClientCertificate( | ||||||||||
| authority_url=client_certificate.authority_url, | ||||||||||
| client_id=client_certificate.client_id, | ||||||||||
| cert_thumbprint=str(thumbprint), | ||||||||||
| certificate=str(key), | ||||||||||
| cert_thumbprint=str(thumbprint, "utf-8"), | ||||||||||
| certificate=str(key, "utf-8"), | ||||||||||
|
Comment on lines
+331
to
+332
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. as the functionality remains same for |
||||||||||
| scopes=list(client_certificate.scopes), | ||||||||||
| ) | ||||||||||
|
|
||||||||||
|
|
||||||||||
Uh oh!
There was an error while loading. Please reload this page.