Class: Himari::Decisions::Authorization::Context

Inherits:
Struct
  • Object
show all
Defined in:
lib/himari/decisions/authorization.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



21
22
23
# File 'lib/himari/decisions/authorization.rb', line 21

def claims
  @claims
end

#clientObject

Returns the value of attribute client

Returns:

  • (Object)

    the current value of client



21
22
23
# File 'lib/himari/decisions/authorization.rb', line 21

def client
  @client
end

#grant_typeObject

Returns the value of attribute grant_type

Returns:

  • (Object)

    the current value of grant_type



21
22
23
# File 'lib/himari/decisions/authorization.rb', line 21

def grant_type
  @grant_type
end

#requestObject

Returns the value of attribute request

Returns:

  • (Object)

    the current value of request



21
22
23
# File 'lib/himari/decisions/authorization.rb', line 21

def request
  @request
end

#scopesObject

Returns the value of attribute scopes

Returns:

  • (Object)

    the current value of scopes



21
22
23
# File 'lib/himari/decisions/authorization.rb', line 21

def scopes
  @scopes
end

#user_dataObject

Returns the value of attribute user_data

Returns:

  • (Object)

    the current value of user_data



21
22
23
# File 'lib/himari/decisions/authorization.rb', line 21

def user_data
  @user_data
end

Instance Method Details

#initial?Boolean

Returns:

  • (Boolean)


22
# File 'lib/himari/decisions/authorization.rb', line 22

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

#refresh?Boolean

Returns:

  • (Boolean)


23
# File 'lib/himari/decisions/authorization.rb', line 23

def refresh?; grant_type == :refresh_token; end