Sha256: e02aa01b8d201efc5505c1e710c003e73b1bbb41d6b8ff509fadce8bcbf7894f

Contents?: true

Size: 286 Bytes

Versions: 4

Compression:

Stored size: 286 Bytes

Contents

module RailsSso
  class FetchUser
    def initialize(access_token)
      @access_token = access_token
    end

    def call
      yield(get)
    end

    private

    attr_reader :access_token

    def get
      access_token.get(RailsSso.provider_profile_path).parsed
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_sso-0.1.3 app/services/rails_sso/fetch_user.rb
rails_sso-0.1.2 app/services/rails_sso/fetch_user.rb
rails_sso-0.1.1 app/services/rails_sso/fetch_user.rb
rails_sso-0.1.0 app/services/rails_sso/fetch_user.rb