richardvanhook / omniauth-salesforce Goto Github PK
View Code? Open in Web Editor NEWOmniAuth strategy for salesforce.com
OmniAuth strategy for salesforce.com
ola
There's no way to specify the scope, display or immediate parameters for the returned OAuth Token
Would it be possible to list a license for this gem in the readme or a license file? I have a project which would benefit from using it but am reluctant to include work without a clear license.
Thanks.
On this comment @realdoug said
FYI, the gem is actually now being maintained here: https://github.com/realdoug/omniauth-salesforce/
Is it true? If then,
gem.homepage
in gemspec should be updatedAnd @realdoug added MIT license at realdoug/omniauth-salesforce@7813e94 but I could not find whether the original author @richardvanhook had agree with that specific license (ref #4)
ERROR -- omniauth: (salesforce) Authentication failure! invalid_credentials: OAuth2::Error, Missing_OAuth_Token
we started getting this error recently, any suggestions. It is an intermittent issue.
I have one Rails application where I am using salesforce omniauth
I am able to logout by making reset_session. But I am not completely logout from salesforce as when user again click login it will redirect to omniauth and login automatically.
I did below steps
gem 'omniauth-salesforce'
and model
class User < ActiveRecord::Base
def self.from_omniauth(auth)
where(auth.slice(:provider, :uid).permit!).first_or_initialize.tap do |user|
user.provider = auth.provider
user.uid = auth.uid
user.name = auth.info.name
user.oauth_token = auth.credentials.token
user.refresh_token = auth.credentials.refresh_token
user.instance_url = auth.credentials.instance_url
user.save!
end
end
end
class SessionsController < ApplicationController
def create
user = User.from_omniauth(env["omniauth.auth"])
session[:user_id] = user.id
redirect_to root_url
end
def destroy
session[:user_id] = nil
redirect_to root_url
end
end
end
I am new on salesforce omniauth. Please suggest how can I able to logout from my app as well as salesforce both.
I keep getting this coming back from salesforce and I'm not really sure where to go to start debugging. What would cause this?
Started GET "/auth/failure?message=invalid_credentials" for 127.0.0.1 at 2011-12-12 17:55:36 -0500
I have cleaned out my sessions/cookies, logged in/out of SF multiple times to try to resolve but no luck.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.