lib/osso/models/user.rb in osso-0.0.3.5 vs lib/osso/models/user.rb in osso-0.0.3.6
- old
+ new
@@ -2,22 +2,22 @@
module Osso
module Models
class User < ActiveRecord::Base
belongs_to :enterprise_account
- belongs_to :saml_provider
+ belongs_to :identity_provider
has_many :authorization_codes, dependent: :delete_all
has_many :access_tokens, dependent: :delete_all
def oauth_client
- saml_provider.oauth_client
+ identity_provider.oauth_client
end
def as_json(*)
{
email: email,
id: id,
- idp: saml_provider.name,
+ idp: identity_provider.name,
}
end
end
end
end