public JwtAuthorizationContext(JwtAuthorizationOptions options, RemoteCallerContext remoteInvokeMessage) { Options = options; Payload = options.GetPayload(); RemoteInvokeMessage = remoteInvokeMessage; if (remoteInvokeMessage.Paras.ContainsKey("username")) { UserName = remoteInvokeMessage.Paras["username"] + ""; } if (remoteInvokeMessage.Paras.ContainsKey("password")) { Password = remoteInvokeMessage.Paras["password"] + ""; } Payload.Add("username", UserName); }
public JwtAuthClientModule(IConfigurationRoot jimuAppSettings) : base(jimuAppSettings) { _options = jimuAppSettings.GetSection(typeof(JwtAuthorizationOptions).Name).Get <JwtAuthorizationOptions>(); }
public JwtAuthorizationMiddleware(ClientRequestDel next, JwtAuthorizationOptions options) { _options = options; _next = next; }