SohoHouse / nuxt-oauth

Simple OAuth2 integration for your Nuxt app
MIT License
123 stars 27 forks source link

redirect uri ignores HTTPS protocol #3

Closed Jexordexan closed 6 years ago

Jexordexan commented 6 years ago

I'm trying to us this module on a secure domain (https://www.my-domain.com), but the redirect uri for the oauth request is set as http://www.my-domain.com/auth/callback. I think the problem is on this line:

https://github.com/samtgarson/nuxt-oauth/blob/0748fe36aef96b8df8c7f68a5d17f6473af632ff/lib/handler.js#L28

The oauth provider does not allow redirects starting with http://

samtgarson commented 6 years ago

Good catch! I'll put a fix in when I find time but I'll merge a PR if you want to put one in 👍

Jexordexan commented 6 years ago

Okay, I'll try to post one soon!