[英]Why does Omniauth redirect to /auth/failure and not /auth/:provider/failure?
everything is in the title.一切都在标题中。
Do you know why omniauth redirects to /auth/failure in case of a failure for every strategy by default ?你知道为什么 omniauth 默认重定向到 /auth/failure 吗? It would be so much easier to customize errors pages depending on the strategy if it was by default /auth/:provider/failure.如果默认设置为 /auth/:provider/failure,则根据策略自定义错误页面会容易得多。
What do you think ?你怎么认为 ?
https://github.com/intridea/omniauth/issues/588 https://github.com/intridea/omniauth/issues/588
您可以参考此拉取请求在 OmniauthCallbacksController#failure 中执行以下操作
strategy = params['strategy']
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.