Skip to content

Allow Connect-Graph to take an x509Certificate. - #440

Merged
George (georgend) merged 12 commits into
devfrom
features/inmemorycert
Nov 18, 2020
Merged

George (georgend) merged 12 commits into
devfrom
features/inmemorycert

Conversation

@georgend

@georgend George (georgend) commented Oct 22, 2020 •

Copy link
Copy Markdown
Contributor

Allow Connect-Graph to take an x509Certificate.

Such as:-

$password= "SomePassword"
$passwordSecure = ConvertTo-SecureString -AsPlainText -Force $password

$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("C:\Certificates\mycert.pfx", $passwordSecure)
Connect-Graph -Certificate $cert -TenantId <some-tenant-id> -ClientId <some-client-id>

Resolves #102

Add tests to verify cert is passed to auth provider.
@peombwa

Peter Ombwa (peombwa) commented Oct 22, 2020 •

Copy link
Copy Markdown
Member

finsharp What does pipeline microsoftgraph.msgraph-sdk-powershell (1) do? It seems to be failing for all PRs. If it's needed, then we should rename it to something useful and figure out why it's failing.

@ddyett

Copy link
Copy Markdown
Contributor

can we add a sample with this usage once approved?

@peombwa

Copy link
Copy Markdown
Member

finsharp The ADO pipelines are failing because we've exhausted our free artifacts storage tier (2 GB). We need to delete old versions of the artifacts then setup a retention policy. See https://docs.microsoft.com/en-us/azure/devops/artifacts/start-using-azure-artifacts?view=azure-devops. Only a feed admin can make these changes.

@darrelmiller Darrel (darrelmiller) modified the milestones: 1.1.0, 1.2.0 Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow Connect-Graph authentication via x509 certificate provided in-memory vs. having to be in local machine store on disk

4 participants