Class: Himari::Decisions::Authentication::Context

Inherits:
Struct
  • Object
show all
Defined in:
lib/himari/decisions/authentication.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#claimsObject

Returns the value of attribute claims

Returns:

  • (Object)

    the current value of claims



9
10
11
# File 'lib/himari/decisions/authentication.rb', line 9

def claims
  @claims
end

#grant_typeObject

Returns the value of attribute grant_type

Returns:

  • (Object)

    the current value of grant_type



9
10
11
# File 'lib/himari/decisions/authentication.rb', line 9

def grant_type
  @grant_type
end

#providerObject

Returns the value of attribute provider

Returns:

  • (Object)

    the current value of provider



9
10
11
# File 'lib/himari/decisions/authentication.rb', line 9

def provider
  @provider
end

#refresh_infoObject

Returns the value of attribute refresh_info

Returns:

  • (Object)

    the current value of refresh_info



9
10
11
# File 'lib/himari/decisions/authentication.rb', line 9

def refresh_info
  @refresh_info
end

#requestObject

Returns the value of attribute request

Returns:

  • (Object)

    the current value of request



9
10
11
# File 'lib/himari/decisions/authentication.rb', line 9

def request
  @request
end

#user_dataObject

Returns the value of attribute user_data

Returns:

  • (Object)

    the current value of user_data



9
10
11
# File 'lib/himari/decisions/authentication.rb', line 9

def user_data
  @user_data
end

Instance Method Details

#initial?Boolean

Returns:

  • (Boolean)


10
# File 'lib/himari/decisions/authentication.rb', line 10

def initial?; grant_type.nil? || grant_type == :initial; end

#refresh?Boolean

Returns:

  • (Boolean)


11
# File 'lib/himari/decisions/authentication.rb', line 11

def refresh?; grant_type == :refresh_token; end