如何将omniauth的路由从/auth/:provider更改为/myapp/auth/:provider [英] How to change route of omniauth from /auth/:provider to /myapp/auth/:provider

查看:86
本文介绍了如何将omniauth的路由从/auth/:provider更改为/myapp/auth/:provider的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将触发omniauth的路由从使用/auth/:provider更改为/myapp/auth/:provider?

How can I change the route that triggers omniauth from using /auth/:provider to /myapp/auth/:provider ?

我也不想重定向,因为我的服务器会将不在/myapp/中的任何内容发送到错误的位置.

I don't want to redirect either, because my server will send anything that's not in /myapp/ to the wrong place.

推荐答案

您可以通过:setup选项更改

来源: https://github .com/omniauth/omniauth/blob/e9978e377f1ac2b7271e5a8486dfe103a1c1d48d/lib/omniauth/strategy.rb#L304-L307

这篇关于如何将omniauth的路由从/auth/:provider更改为/myapp/auth/:provider的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆