microsoftgraph / microsoftgraph/msgraph-sdk-powershell

Get-MgBetaServicePrincipal returns wrong PreferredTokenSigningKeyEndDateTime values

Open
#2,533 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Status: Needs Investigation
Dominant language
C#
Stars
898
Forks
230
Avg merge
2d 5h
Merged PRs (30d)
31

Description

In order to get the expiration date of SAML certificates, i'm using 'Get-MgBetaServicePrincipal' to retreive PreferredTokenSigningKeyEndDateTime value for all the apps:

2024-01-17_15h59_29

For some applications, the value returned by the cmdlet is not accurate:

2024-01-17_16h02_10

The cmdlet Get-MgServicePrincipal doesn't return PreferredTokenSigningKeyEndDateTime property.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Get-MgBetaServicePrincipal and Get-MgServicePrincipal entry points and compare their PreferredTokenSigningKeyEndDateTime behavior for the applications described. Check the returned values against the SAML certificate expiration dates shown in the issue, and determine whether the discrepancy is in the cmdlet or the Microsoft Graph response. Done means the property is returned accurately and consistently, or the service limitation is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.