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



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

def claims
  @claims
end

#grant_typeObject

Returns the value of attribute 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



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

def provider
  @provider
end

#refresh_infoObject

Returns the value of attribute 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



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

def request
  @request
end

#user_dataObject

Returns the value of attribute user_data



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

def user_data
  @user_data
end

Instance Method Details

#initial?Boolean



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

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

#refresh?Boolean



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

def refresh?; grant_type == :refresh_token; end