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

后端 未结 3 1971
-上瘾入骨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:28

    Add the following option in your initializer:

    option :request_path, 'https://yourdomain.com/auth/yourprovider/callback'
    

    Restart you app server and try!

提交回复
热议问题