-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Description
When I use OAuth2, I will be redirected to /oauth/authorize? By 302 Code after successful login, and then I can access the protected resources after verification, which seems to be no problem under HTTP request, but when I use HTTPS in the production environment, the redirected link becomes /oauth/authorize?client_id=blog-system&redirect_uri=http://blog.minbb.cn:443/login&response_type=code&state=t5flq0, in which the redirect uri should be https://blog.minbb.cn, because I have configured this in the database.
Which leads to the error of OAuth Error error="invalid_request", error_description="Invalid redirect: http://blog.minbb.cn:443/login does not match one of the registered values.".And the system of the production environment implements HTTPS through nginx. I want to know /oauth/authorize? How to get the parameter splicing later, and why the wrong jump URL splicing occurs?