Class: LWS::Auth::User

Inherits:
Generic::Model show all
Defined in:
lib/lws/apps/auth.rb

Overview

The user class

This class is a nested/associated class of Account or Token only! It cannot be accessed directly.

Instance Attribute Summary collapse

Attributes inherited from Generic::Model

#created_at, #id, #updated_at, #url, #url_html

Method Summary

Methods inherited from Generic::Model

#deep_dup, #dig, #reload, #rollback, #save

Instance Attribute Details

#accountAccount

Returns the account that the user belongs to.

Returns:

  • (Account)

    the account that the user belongs to



459
# File 'lib/lws/apps/auth.rb', line 459

belongs_to :account

#account_idInteger

Returns the ID of the account that the user belongs to.

Returns:

  • (Integer)

    the ID of the account that the user belongs to



463
# File 'lib/lws/apps/auth.rb', line 463

attribute :account_id

#auth_providerString

Returns the name of the authentication provider.

Returns:

  • (String)

    the name of the authentication provider



467
# File 'lib/lws/apps/auth.rb', line 467

attribute :auth_provider

#emailString

Returns the email address of the user.

Returns:

  • (String)

    the email address of the user



471
# File 'lib/lws/apps/auth.rb', line 471

attribute :email

#mfa_enabledBoolean

Returns whether MFA (multi-factor authentication) is enabled for the user.

Returns:

  • (Boolean)

    whether MFA (multi-factor authentication) is enabled for the user



476
# File 'lib/lws/apps/auth.rb', line 476

attribute :mfa_enabled

#mfa_verifiedBoolean

Returns whether MFA (multi-factor authentication) has been verified for the user.

Returns:

  • (Boolean)

    whether MFA (multi-factor authentication) has been verified for the user



481
# File 'lib/lws/apps/auth.rb', line 481

attribute :mfa_verified

#oauth_expires_atString?

Returns the timestamp of when the OAuth token of the user expires.

Returns:

  • (String, nil)

    the timestamp of when the OAuth token of the user expires



486
# File 'lib/lws/apps/auth.rb', line 486

attribute :oauth_expires_at

#password_digestString?

Returns the digested version of the password of the user. (Can be nil if the authentication provider (see #auth_provider) is not “lws”.).

Returns:

  • (String, nil)

    the digested version of the password of the user. (Can be nil if the authentication provider (see #auth_provider) is not “lws”.)



492
# File 'lib/lws/apps/auth.rb', line 492

attribute :password_digest

#password_expires_atString?

Returns the timestamp on which the password of the user expires.

Returns:

  • (String, nil)

    the timestamp on which the password of the user expires.



497
# File 'lib/lws/apps/auth.rb', line 497

attribute :password_expires_at

#use_for_communicationBoolean

Returns whether the email address (see #email) of the user is/will be used to send messages/announcements.

Returns:

  • (Boolean)

    whether the email address (see #email) of the user is/will be used to send messages/announcements



502
# File 'lib/lws/apps/auth.rb', line 502

attribute :use_for_communication