Why is the PreferredTokenSigningKeyThumbprint Empty for Some SAML Apps in PowerShell?

0
4
Asked By CuriousCat99 On

I'm having a bit of an issue with some of my Enterprise SAML applications. I can see the token signing certificates in the Admin console UI, but when I try to retrieve them using PowerShell, the PreferredTokenSigningKeyThumbprint comes back empty for some applications, while others work just fine. Here's what I see:

- PreferredTokenSigningKeyThumbprint :
- TokenEncryptionKeyId :
- TokenIssuancePolicies :
- TokenLifetimePolicies :
- PreferredSingleSignOnMode : saml
- DisplayName : Test-App1

Has anyone experienced this before or know why it might be happening? Thanks!

1 Answer

Answered By TechWhiz87 On

It sounds like you might not be using the right command or there could be some default properties not included. Have you tried specifically calling out those properties in your command? Also, the scopes you've connected with could impact what you see.

Do you mind sharing your command line? It would help us troubleshoot a bit better!

CuriousCat99 -

Sure! Here’s the command I’m using:

Get-Mgserviceprincipal -all | select "*token*", preferredSingleSignOnMode, PreferredTokenSigningKeyThumbprint, displayName

I'm connecting with Directory.read.all, and I noticed that some apps return the thumbprint while others don’t without any errors.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.