Class: ServiceStack::AuthenticateResponse

Inherits:
Object
  • Object
show all
Includes:
DTO
Defined in:
lib/servicestack/types.rb

Overview

The Response of a successful Authenticate Request.

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from DTO

#==, included, #initialize, #inspect, #to_hash, #to_json

Instance Attribute Details

#auth_providerObject

Returns the value of attribute auth_provider.



200
201
202
# File 'lib/servicestack/types.rb', line 200

def auth_provider
  @auth_provider
end

#bearer_tokenObject

Returns the value of attribute bearer_token.



200
201
202
# File 'lib/servicestack/types.rb', line 200

def bearer_token
  @bearer_token
end

#display_nameObject

Returns the value of attribute display_name.



200
201
202
# File 'lib/servicestack/types.rb', line 200

def display_name
  @display_name
end

#metaObject

Returns the value of attribute meta.



200
201
202
# File 'lib/servicestack/types.rb', line 200

def meta
  @meta
end

#permissionsObject

Returns the value of attribute permissions.



200
201
202
# File 'lib/servicestack/types.rb', line 200

def permissions
  @permissions
end

#profile_urlObject

Returns the value of attribute profile_url.



200
201
202
# File 'lib/servicestack/types.rb', line 200

def profile_url
  @profile_url
end

#referrer_urlObject

Returns the value of attribute referrer_url.



200
201
202
# File 'lib/servicestack/types.rb', line 200

def referrer_url
  @referrer_url
end

#refresh_tokenObject

Returns the value of attribute refresh_token.



200
201
202
# File 'lib/servicestack/types.rb', line 200

def refresh_token
  @refresh_token
end

#refresh_token_expiryObject

Returns the value of attribute refresh_token_expiry.



200
201
202
# File 'lib/servicestack/types.rb', line 200

def refresh_token_expiry
  @refresh_token_expiry
end

#response_statusObject

Returns the value of attribute response_status.



200
201
202
# File 'lib/servicestack/types.rb', line 200

def response_status
  @response_status
end

#rolesObject

Returns the value of attribute roles.



200
201
202
# File 'lib/servicestack/types.rb', line 200

def roles
  @roles
end

#session_idObject

Returns the value of attribute session_id.



200
201
202
# File 'lib/servicestack/types.rb', line 200

def session_id
  @session_id
end

#user_idObject

Returns the value of attribute user_id.



200
201
202
# File 'lib/servicestack/types.rb', line 200

def user_id
  @user_id
end

#user_nameObject

Returns the value of attribute user_name.



200
201
202
# File 'lib/servicestack/types.rb', line 200

def user_name
  @user_name
end

Class Method Details

.propertiesObject



204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
# File 'lib/servicestack/types.rb', line 204

def self.properties
  {
    user_id: { name: 'userId' },
    session_id: { name: 'sessionId' },
    user_name: { name: 'userName' },
    display_name: { name: 'displayName' },
    referrer_url: { name: 'referrerUrl' },
    bearer_token: { name: 'bearerToken' },
    refresh_token: { name: 'refreshToken' },
    refresh_token_expiry: { name: 'refreshTokenExpiry', type: DateTime },
    profile_url: { name: 'profileUrl' },
    roles: { name: 'roles' },
    permissions: { name: 'permissions' },
    auth_provider: { name: 'authProvider' },
    response_status: { name: 'responseStatus', type: ResponseStatus },
    meta: { name: 'meta' },
  }
end