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.
파일 보기 프로젝트 열기: xigadee/Microservice

공개 메소드들

메소드 설명
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