Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 15, 2018. It is now read-only.
This repository was archived by the owner on Feb 15, 2018. It is now read-only.

Detect and warn of missing clearing of InboundClaimTypeMap? #255

Description

@petedavis

I was setting up IdentityManager and getting a unauthorized access error trying to login using almost the same code as the sample host, only I was missing this one line:

JwtSecurityTokenHandler.InboundClaimTypeMap = new Dictionary<string, string>();

During my debugging I was watching the logs and there was no real indication as to why the login failed. So I was wondering that given this line is so important when using IdentityServer and IdentityManager, if there was an applicable spot that might be able to detect that the claim mapping was incorrect and log a descriptive warning or error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions