How to change route of omniauth from /auth/:provider to /myapp/auth/:provider

后端 未结 3 1730
-上瘾入骨i
-上瘾入骨i 2021-02-19 11:45

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

I don\'t want to redirect either, because my server will send any

3条回答
  •  孤独总比滥情好
    2021-02-19 12:34

    You can change it via :setup option

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

提交回复
热议问题