.Net Authentication Flashcards
What is the claim?
Claim is a statement about a subject. Claim has type, value and value type.
What is claim type?
The type is more like a key and it’s a string (typically a URI). It contains semantic information about the claim; it tells you what the value of the claim means.
What is claim value?
The Value property contains the value of the claim. In order to reduce dependencies and simplify administration, the value of a claim is represented only as a string.
What is claim value type?
The value type is a string that identifies the type information for the value. This property should be used to understand the format of the value and to provide information about how to deserialize it.
What is claim properties?
Claim properties is Dictionary<string,string> that allow to add additional properties for claim.
What happens, if you don’t provide a default schema and schema on authorize attribute?
You have an exception “InvalidOperationException: No authenticationScheme was specified, and there was no DefaultAuthenticateScheme found.” So there is no automatic probing of schemes.
What is claim issuer?
The source of the claim