public JwtAuthorizationContext(JwtAuthorizationOptions options, JimuRemoteCallData remoteInvokeMessage)
 {
     Options             = options;
     Payload             = options.GetPayload();
     RemoteInvokeMessage = remoteInvokeMessage;
     if (remoteInvokeMessage.Parameters.ContainsKey("username"))
     {
         UserName = remoteInvokeMessage.Parameters["username"] + "";
     }
     if (remoteInvokeMessage.Parameters.ContainsKey("password"))
     {
         Password = remoteInvokeMessage.Parameters["password"] + "";
     }
     if (remoteInvokeMessage.Parameters.ContainsKey("grant_type"))
     {
         GrantType = remoteInvokeMessage.Parameters["grant_type"] + "";
     }
     Payload.Add("username", UserName);
 }
 public JwtAuthorizationMiddleware(RequestDel next, JwtAuthorizationOptions options, IContainer container)
 {
     _options   = options;
     _next      = next;
     _container = container;
 }