Redirect URL on OAuth2.0 after switching from http to https

As the result of this, I did not have to update the redirect url on OAuth 2.0 page.
I guess it works because I added redirect on WordPress, then the request to the page was redirected to ‘https’ automatically.