I use omniauth-facebook, omniauth-twitter, omniauth-google-oauth2gemsto log in, everything works fine on localhost, but in production it adds a port number of 5050 to the authorization URL, has anyone encountered this problem? My website url is addthis.com
omniauth-facebook, omniauth-twitter, omniauth-google-oauth2
Twitter URL
http://addthis.com:5050/users/auth/twitter/callback?oauth_token=krnYyA5BzM4JlCc5XVxuhsdfspArsdfgtkrUzajMts&oauth_verifier=MjLR9fPSV7aWThOe80oDuvBdbpbpfjfbpfjpj
Facebook url:
https://www.facebook.com/dialog/oauth?client_id=213027215529249&redirect_uri=http%3A%2F%2Faddthis.com%3A5050%2Fusers%2Fauth%2Ffacebook%2Fcallback&response_type=code&scope=9ffbfdfbfdfbfdfbffdffdfefffefefeffeffeffeffibeffisffisffbeffibfefbisffbfad and any other
Google url
Redirect URI in the request: http://addthis.com:5050/users/auth/google_oauth2/callback does not match the registered redirect URI
Omniauth in response included the port used inside nginxthis blog helped me a lot http://awesomeprogrammer.com/blog/2012/12/09/dealing-with-omniauth-redirect-uri-mismatch-invalid-port-number-gotcha/
Source: https://habr.com/ru/post/1527934/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1527929/push-to-a-remote-origin-on-a-subfolder-of-git-repository&usg=ALkJrhgmmzSfCGxBRcx9Wm7jvQtbajwbcwHow to remove the nth element of an array with morphine - listcopied or saved addObject in NSMutableArray? - iosHow to automatically set DateCreated and DateUpdated - c #how to change navigation URL to asynchronous page load - javascriptHow to eliminate improper neutralization of Script-implemented HTML tags on a web page (Basic XSS) with an error message? - veracodehttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1527936/angularjs-controller-resource-call-not-passing-parameters-to-service-factory&usg=ALkJrhgraVgM9FOJkp-7DD0xiA60AdFxsgNode.js - calling a method after executing another method - javascriptPackage installation fails - rFixed type parameter in alternative constructor - constructorAll Articles