Netty / Shiro整合(Netty / Shiro Integration)
我不想编写自己的身份验证处理程序,而是使用现有的身份验证框架,例如Apache Shiro。 经过一些研究后,我发现将Shiro与netty集成并不是一项直接的任务,尽管沿着通道传递主题不是问题,而是设置所有必需的处理程序。 是否有现有的集成(例如ChannelHandler等)或至少一个公共示例,它显示了如何使用具有典型功能的Shiro验证netty中的HTTP请求(请记住我,主题的cookie存储等)?
最好的问候和感谢提前,Remigius。
Instead of writing my own authentication handler, I'd like to use an existing authentication framework, e.g. Apache Shiro. After some research I have found that integrating Shiro with netty is not a straight forward task, although passing the Subject along the channel is not a problem, but rather setting up all the required handlers. Is there an existing integration (e.g. a ChannelHandler etc.) or at least a public sample that shows how to authenticate HTTP requests in netty with Shiro with the typical features (remember me, cookie store for subject etc.)?
Best regards and thanks in advance, Remigius.
原文:https://stackoverflow.com/questions/28697939
最满意答案
相关问答
更多-
Richtextbox1.text = mid(Richtextbox1.text,1,len(richtextbox1.text)-x)&NewTotal 其中x是前一个总计的长度,NewTotal是新的总字符串。 编辑(见评论): 使用此代码解决您的问题: dim numberofcolumns as integer = listview1.ColumnHeaders.Count dim str(numberofcolumns-1) as string str(numberofcolumns-2) ...
-
如何以编程方式启动新的Windows登录会话(RDP或控制台)(How to start a new Windows logon session (RDP or console) programmatically)[2021-11-22]
我让SendInput在登录桌面上工作(事实证明,UAC安全桌面)。 SetThreadDesktop不能为您提供与最初在目标桌面中启动该进程相同的权限。 因此,当我检测到桌面更改,而不是调用SetThreadDesktop时,我使用CreateProcessAsUser在新桌面中启动了另一个进程。 然后我发信号通知观众切换并关闭当前进程。 I got SendInput to work on the logon desktop (and, as it turns out, the UAC secure d ... -
Shopify在富文本框中添加图像会在添加后显示损坏的图像(Shopify Adding Image in Rich text box shows broken image after adding)[2022-04-14]
所有图像必须包含img_url才能获取图像本身的CDN路径。 此外,您必须以这种方式定位块图像block.settings.image而不是settings.block.image 。 所以你的代码应该是{{ block.settings.image-left | img_url: '1024x' }} {{ block.settings.image-left | img_url: '1024x' }}或你喜欢它的大小。 All images must include img_url in order fo ... -
如何判断SPField是富文本框还是普通文本框?(How can I tell if an SPField is a rich text box or a normal text box?)[2020-08-25]
你能使用TypeAsString属性吗? 其他人似乎有找到类型的问题 。 string fieldType = spField.TypeAsString; Can you use the TypeAsString property? Others seem to have had issues finding the type. string fieldType = spField.TypeAsString; -
在Codeproject上发表了一篇文章,描述了您正在寻找的解决方案: 链接 希望这会有所帮助。 Rgds,AB There is an article published on Codeproject, describing the solution that you are looking for: link Hope this will help. Rgds, AB
-
LinkClickedEventArgs参数e包含一个LinkText属性,该属性是单击的URL - 因此您可以将其用作进程启动调用中的参数。 private void richTextBox1_LinkClicked(object sender, System.Windows.Forms.LinkClickedEventArgs e) { p = System.Diagnostics.Process.Start(e.LinkText); } The LinkClickedEventArg ...
-
我认为可能有不同的标签设置(我的意思是一个标签的空格数) Thank you all for your inputs.. Above C++ code uses, 8 bit LPSTR as a buffer. Problem with rich text box is it doesn't support Unicode - 8 bit characters... It supports only - 16 bit characters Instead of a rich text box, we ca ...
-
我会建议,而不是捕获关键输入并将其替换为关联的大写版本。 否则,假设用户在文本框中单击,切换到另一个应用程序,实现大写锁定打开,在计算机上抛出一块砖块,然后切换回您的应用程序,并且光标位于文本框中,并等待大写字母,但Caps Lock现在关闭。 I would suggest instead capturing the key input and replacing it with the associated uppercase version. Otherwise, imagine a situatio ...
-
C#富文本框样式(C# rich text box styling)[2022-10-25]
对于要为其应用样式的每个字符串,请选择字符串,然后应用所需的样式。 喜欢: richTextBox1.Text = "Hi this is a string"; richTextBox1.Select(0, 2);//selects Hi richTextBox1.SelectionColor = Color.Red;//make its color red richTextBox1.SelectionFont = new Font("Arial", 15, FontStyle.Bold); apply a ... -
富文本框中的图标?(Icons in rich text box?)[2022-06-17]
我认为唯一的方法是使用粘贴选项。 试试这个代码 private void richTextBox1_KeyDown(object sender, KeyEventArgs e) { if (richTextBox1.Text.Contains(":-)")) { richTextBox1.SelectionStart = richTextBox1.Find(":-)", RichTextBoxFinds.WholeWord); richTextBox1 ...