Module: LinkedinSignIn

Defined in:
lib/linkedin_sign_in.rb,
lib/linkedin_sign_in/engine.rb,
lib/linkedin_sign_in/identity.rb,
lib/linkedin_sign_in/redirect_protector.rb

Defined Under Namespace

Modules: ButtonHelper, RedirectProtector Classes: AuthorizationsController, BaseController, CallbacksController, Engine, Identity

Constant Summary collapse

OAUTH2_ERRORS =

Authorization Code Grant errors from both authorization requests and access token requests.

authorization_request_errors | access_token_request_errors

Class Method Summary collapse

Class Method Details

.oauth2_client(redirect_uri:) ⇒ Object



37
38
39
40
41
42
43
44
45
# File 'lib/linkedin_sign_in.rb', line 37

def self.oauth2_client(redirect_uri:)
  OAuth2::Client.new \
    LinkedinSignIn.client_id,
    LinkedinSignIn.client_secret,
    authorize_url: LinkedinSignIn.authorize_url,
    token_url: LinkedinSignIn.token_url,
    redirect_uri: redirect_uri,
    **LinkedinSignIn.oauth2_client_options.to_h
end