简体   繁体   中英

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 ? It would be so much easier to customize errors pages depending on the strategy if it was by default /auth/:provider/failure.

What do you think ?


https://github.com/intridea/omniauth/issues/588

您可以参考拉取请求在 OmniauthCallbacksController#failure 中执行以下操作

strategy = params['strategy']

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM