C# Класс 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.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

ShortcutSetName() публичный статический Метод

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.
Результат void

ShortcutSetRole() публичный статический Метод

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.
Результат void