janko / rodauth-omniauth

OmniAuth login and registration for Rodauth authentication framework
MIT License
51 stars 3 forks source link

Repeated Rodauth Prefix #5

Closed mdodell closed 1 year ago

mdodell commented 1 year ago

Hey @janko!

When I was working on implementing Rodauth Omniauth with a Prefix URL, I noticed that when my Omniauth request to /auth/:provider, the redirect URI included the prefix URL twice.

For example,https://www.linkedin.com/oauth/v2/authorization?client_id=86aeer6zhrqq9e&redirect_uri=http://127.0.0.1:3000/api/v1/api/v1/auth/linkedin/callback&response_type=code&scope=r_emailaddress+r_liteprofile&state=SOME_STATE.

As you can see, /api/v1/api/v1 should probably just be/api/v1`. I have a sample repository here.

mdodell commented 1 year ago

Closing this in favor of a discussion.