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
满意答案
相关问答
更多如何清除富文本框中的某些内容(how to clear a certain content in a rich text box)
如何以编程方式启动新的Windows登录会话(RDP或控制台)(How to start a new Windows logon session (RDP or console) programmatically)
Shopify在富文本框中添加图像会在添加后显示损坏的图像(Shopify Adding Image in Rich text box shows broken image after adding)
如何判断SPField是富文本框还是普通文本框?(How can I tell if an SPField is a rich text box or a normal text box?)
添加启动进程的富文本框的链接(RDP)(Add link to rich text box that starts a process (RDP))
富文本框中多个超链接到多个页面c#(Multiple Hyperlinks to Multiple Pages in rich text box c#)
在C#中为富文本框分配内存(Allocating memory for a rich text box in C#)
如果富文本框具有焦点,如何打开大写锁定(How to turn on caps lock whenever rich text box has focus)
C#富文本框样式(C# rich text box styling)
富文本框中的图标?(Icons in rich text box?)
相关文章
更多快速了解shiro
Shiro整合到Web应用
[Netty 1] 初识Netty
shiro视频教程免费下载
Netty环境配置
Shiro相关术语
Netty开发环境配置
Shiro入门示例教程
第一章 Shiro简介——《跟我学Shiro》
Netty源码分析
最新问答
更多获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
如何通过引用返回对象?(How is returning an object by reference possible?)
矩阵如何存储在内存中?(How are matrices stored in memory?)
每个请求的Java新会话?(Java New Session For Each Request?)
css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
xcode语法颜色编码解释?(xcode syntax color coding explained?)
在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
Copyright ©2023 peixunduo.com All Rights Reserved.粤ICP备14003112号
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们(neng862121861#163.com),本站将尽快处理。谢谢合作!