带有Rails的单用户OpenID服务器(Single-user OpenID server with Rails)
我的网站的根页面会自动通过http标头将所有用户重定向到某个子页面。
http://example.com/ → http://example.com/subpage
我想将我的域
example.com
用作OpenID。 问题是我必须在我的根页面添加一些标记,但它应该重定向子页面上的所有用户。 我可以更改重定向的类型并使用例如元标记。 但有没有更好的方法来实现它,不要打破即时http重定向?也许我可以以某种方式区分OpenID请求,只有那个时间用html响应?
My website's root page automatically redirects all users to some subpage via http header.
http://example.com/ → http://example.com/subpage
I want to use my domain
example.com
as OpenID. The problem is that I have to add some tag to my root page, but it should redirect all users on subpage. I can change the type of redirection and use e.g. meta tag. But is there a better way to implement that and don't break instant http redirect?Maybe I can somehow distinguish OpenID request and only that time respond with html?
原文:https://stackoverflow.com/questions/3588430
满意答案
javascript,css文件放在哪里? src / main / webapp / css src / main / webapp / js
什么是顶级src? 是的,src / main / java src / main / resources src / test / java src / test / resources
我建议你使用Maven项目类型。 在Eclipse中:New> Project ...> Maven> Maven Project
Where would javascript,css files be place? src/main/webapp/css src/main/webapp/js
What is top level src normally for? yes, src/main/java src/main/resources src/test/java src/test/resources
I suggest you use a Maven project type. In Eclipse: New > Project... > Maven > Maven Project
相关问答
更多android 3d游戏开发 所需要的软件
除了IIS和Apache,还有没有其它的服务器程序
安卓应用程序开发使用哪个开发工具最好?
安卓手机编程现在用什么软件?并求下载地址。
eclipse中的tomcat 7项目(tomcat 7 project from eclipse)
eclipse中的Tomcat服务器不适用于Gradle构建项目(Tomcat server within eclipse not working for Gradle build project)
使用Java EE和Tomcat在eclipse中设置动态Web项目的问题(Problems setting up a dynamic web project in eclipse using Java EE and Tomcat)
eclipse中tomcat项目的目录结构(Directory structure of tomcat project in eclipse)
Eclipse中Dynamic Web Project中的Servlet目录结构实现(Servlet directory structure realization in Dynamic Web Project in Eclipse)
在eclipse Dynamic Web Project中映射tomcat安装外部的外部目录(Map external directory outside tomcat installation in eclipse Dynamic Web Project)
相关文章
更多配置sunspot tomcat结合sunspot_rails
微信公共服务平台开发(.Net 的实现)11-------客服消息(定项消息推送 重要的OPENID)
rails 单元测试
rails3+mongrel1.2.0pre2在windows下面的生产环境配置问题
Rails常用插件
Rails 风格指导
微信-网页授权获取用户openid
(转)微信Openid和fakeid对应简单实现
Rails中的路由功能是如何对应的?
微信获取用户的openid和详细信息
最新问答
更多python的访问器方法有哪些
使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
透明度错误IE11(Transparency bug IE11)
linux的基本操作命令。。。
响应navi重叠h1和nav上的h1链接不起作用(Responsive navi overlaps h1 and navi links on h1 isn't working)
在C中读取文件:“r”和“a +”标志的不同行为(Reading a File in C: different behavior for “r” and “a+” flags)
NFC提供什么样的带宽?(What Kind of Bandwidth does NFC Provide?)
元素上的盒子阴影行为(box-shadow behaviour on elements)
它看起来像只在Windows上的Chrome的错误。 我在Google Canary (Chrome 63)中也进行了测试,问题依然存在,所以有可能它不会很快修复。 这个问题是由overflow: auto引起的overflow: auto ,在你的情况下,它可以很容易地通过删除或设置为可见(默认)来解决。 但是 ,将鼠标悬停在右侧(顶部和底部)时,会出现滚动条。 一个解决方案可以设置overflow: hidden的身体,所以预期的结果是所需的。 我想指出,这不是一个很好的解决方案,但我建议暂
Laravel检查是否存在记录(Laravel Checking If a Record Exists)
这取决于您是否要以后与用户合作,或仅检查是否存在。 如果要使用用户对象(如果存在): $user = User::where('email', '=', Input::get('email'))->first(); if ($user === null) { // user doesn't exist } 如果你只想检查 if (User::where('email', '=', Input::get('email'))->count() > 0) { // user found
设置base64图像的大小javascript - angularjs(set size of a base64 image javascript - angularjs)
$scope.getData= function () { var reader = new FileReader(); reader.onload = $('input[type=file]')[0].files; var img = new Image(); img.src =(reader.onload[0].result); img.onload = function() { if(this.width > 640
Copyright ©2023
peixunduo.com All
Rights Reserved.粤ICP备14003112号
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们(neng862121861#163.com),本站将尽快处理。谢谢合作!
Laravel检查是否存在记录(Laravel Checking If a Record Exists)
设置base64图像的大小javascript - angularjs(set size of a base64 image javascript - angularjs)
Copyright ©2023 peixunduo.com All Rights Reserved.粤ICP备14003112号
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们(neng862121861#163.com),本站将尽快处理。谢谢合作!