Skip to content

The subject matches with case-insensitive comparison, but not with case-sensitive comparison #1

Description

@ameed

Hi Clive,

Thank you for a very useful series of posts on this subject.

I tried this, and came across the issue due to case-sensitive comparison on Subject of Federated Identity.
The error thrown was:

No matching federated identity record found for presented assertion subject 'component:pluginassembly,thumbprint:14F142E1A8FEB3876C4CF401024B736F4A1F1254,environment:<<EnvironmentId>>'

Carefully noticing, i found out that the thumbprint passed to verify claims had all alphas as uppercase, though i had copied that from my self-signed certificate as such.

Secondly in your post here , in step 2, the issuer uri has a type-o in "enviorment", i copy/pasted :)

https://[environment ID prefix].[environment ID suffix].enviornment.api.powerplatform.com/sts

... as i kept getting error, upon carefully looking at the issuer in my managed identity federated credentials, i spotted and fixed it

https://[environment ID prefix].[environment ID suffix].environment.api.powerplatform.com/sts

Thanks
Ameed

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions