C# Class Xigadee.JwtTokenExtensionMethods

This class contains and validates the Jwt Token. This class currently only supports simple HMAC-based verification. Thanks to http://kjur.github.io/jsjws/tool_jwt.html for verification.
Datei anzeigen Open project: xigadee/Microservice

Public Methods

Method Description
ShortcutSetName ( Xigadee.JwtClaims claims, string name ) : void

This shortcuts sets the name using the Microsoft defined claim id.

ShortcutSetRole ( Xigadee.JwtClaims claims, string role ) : void

This shortcuts the set role using the Microsoft defined claim id.

Method Details

ShortcutSetName() public static method

This shortcuts sets the name using the Microsoft defined claim id.
public static ShortcutSetName ( Xigadee.JwtClaims claims, string name ) : void
claims Xigadee.JwtClaims The claims.
name string The name.
return void

ShortcutSetRole() public static method

This shortcuts the set role using the Microsoft defined claim id.
public static ShortcutSetRole ( Xigadee.JwtClaims claims, string role ) : void
claims Xigadee.JwtClaims The claims.
role string The role id.
return void