View Source
Class ExternalLoginService
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public class ExternalLoginService : RepositoryService, IExternalLoginWithKeyService, IService
Constructors
View Source
ExternalLoginService(ICoreScopeProvider, ILoggerFactory, IEventMessagesFactory, IExternalLoginWithKeyRepository)
Declaration
public ExternalLoginService(ICoreScopeProvider provider, ILoggerFactory loggerFactory, IEventMessagesFactory eventMessagesFactory, IExternalLoginWithKeyRepository externalLoginRepository)
Parameters
Methods
View Source
DeleteUserLogins(Guid)
Deletes all user logins - normally used when a member is deleted
Declaration
public void DeleteUserLogins(Guid userOrMemberKey)
Parameters
Type |
Name |
Description |
Guid |
userOrMemberKey |
|
View Source
Find(String, String)
Declaration
public IEnumerable<IIdentityUserLogin> Find(string loginProvider, string providerKey)
Parameters
Type |
Name |
Description |
System.String |
loginProvider |
|
System.String |
providerKey |
|
Returns
View Source
GetExternalLogins(Guid)
Returns all user logins assigned
Declaration
public IEnumerable<IIdentityUserLogin> GetExternalLogins(Guid userOrMemberKey)
Parameters
Type |
Name |
Description |
Guid |
userOrMemberKey |
|
Returns
View Source
GetExternalLoginTokens(Guid)
Returns all user login tokens assigned
Declaration
public IEnumerable<IIdentityUserToken> GetExternalLoginTokens(Guid userOrMemberKey)
Parameters
Type |
Name |
Description |
Guid |
userOrMemberKey |
|
Returns
View Source
Save(Guid, IEnumerable<IExternalLogin>)
Saves the external logins associated with the user
Declaration
public void Save(Guid userOrMemberKey, IEnumerable<IExternalLogin> logins)
Parameters
Type |
Name |
Description |
Guid |
userOrMemberKey |
The user or member key associated with the logins
|
IEnumerable<IExternalLogin> |
logins |
|
View Source
Save(Guid, IEnumerable<IExternalLoginToken>)
Saves the external login tokens associated with the user
Declaration
public void Save(Guid userOrMemberKey, IEnumerable<IExternalLoginToken> tokens)
Parameters
Type |
Name |
Description |
Guid |
userOrMemberKey |
The user or member key associated with the logins
|
IEnumerable<IExternalLoginToken> |
tokens |
|