Skip to content
This repository was archived by the owner on Sep 2, 2020. It is now read-only.
This repository was archived by the owner on Sep 2, 2020. It is now read-only.

uninitialized constant LeanTesting::OAuth2Handler::Curl #4

Description

@lucygeneric

I may be going about this completely wrong ~ Whenever I try to consume OAuth2 I get an uninit. constant error as in title for leantesting.auth.generateAuthLink

The docs are not very clear on how to generate the token. This is my first time with OAuth - I may be missing some fundamental basics ;)

require 'leantesting'

  leantesting = LeanTesting::Client.new

  auth = leantesting.auth.generateAuthLink(LEAN_TESTING_CONFIG[:client_id], LEAN_TESTING_CONFIG[:callback_url])

  token = leantesting.auth.exchangeAuthCode(
    LEAN_TESTING_CONFIG[:client_id],
    LEAN_TESTING_CONFIG[:client_secret],
    'authorization_code',
    auth,
    LEAN_TESTING_CONFIG[:callback_url]
  )

  leantesting.attachToken(token)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions