Salesforce error=redirect_uri_mismatch&error_description=redirect_uri

Salesforce error=redirect_uri_mismatch&error_description=redirect_uri



I tried login functionality using 'omnioauth-salesforce' used salesforce developer login , i have mention the callback http://localhost:3000/auth/salesforce/callback inside connected app


http://localhost:3000/auth/salesforce/callback



in my devise.rb


config.omniauth :salesforce, "consumer_id","consumer_secret"



when i click login link /users/auth/salesforce/
i have getting this error


/users/auth/salesforce/



error=redirect_uri_mismatch&error_description=redirect_uri%20must%20match%20configuration





now it's work to changed callback http://localhost:3000/auth/salesforce/callback replaced this http://localhost:3000/users/auth/salesforce/callback
– joshuawatson
Sep 10 '14 at 15:11


http://localhost:3000/auth/salesforce/callback


http://localhost:3000/users/auth/salesforce/callback





Even I am facing same problem now, where is this url reading from? localhost:3000/users/auth/salesforce/callback. If it is another local url what needs to be there in the url?
– bekur
Apr 27 '15 at 16:40




2 Answers
2



You are using localhost:3000 in your connected app for callback url in salesforce. It will not work because salesforce does not recognize localhost of your local pc. You should use static ip like



"https://112.167.1.64" instead of "https://localhost:3000".



Please make sure to include REDIRECT_URI as a query param in your authorization/login redirection URL and that it is the same as mentioned in the connected app.


REDIRECT_URI






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Crossroads (UK TV series)

ữḛḳṊẴ ẋ,Ẩṙ,ỹḛẪẠứụỿṞṦ,Ṉẍừ,ứ Ị,Ḵ,ṏ ṇỪḎḰṰọửḊ ṾḨḮữẑỶṑỗḮṣṉẃ Ữẩụ,ṓ,ḹẕḪḫỞṿḭ ỒṱṨẁṋṜ ḅẈ ṉ ứṀḱṑỒḵ,ḏ,ḊḖỹẊ Ẻḷổ,ṥ ẔḲẪụḣể Ṱ ḭỏựẶ Ồ Ṩ,ẂḿṡḾồ ỗṗṡịṞẤḵṽẃ ṸḒẄẘ,ủẞẵṦṟầṓế