Interface IExternalLoginWithKeyService
Namespace: Umbraco.Cms.Core.Services
Assembly: Umbraco.Core.dll
Syntax
public interface IExternalLoginWithKeyService : IService
Methods
View SourceDeleteUserLogins(Guid)
Deletes all user logins - normally used when a member is deleted
Declaration
void DeleteUserLogins(Guid userOrMemberKey)
Parameters
Type | Name | Description |
---|---|---|
Guid | userOrMemberKey |
Find(String, String)
Returns all logins matching the login info - generally there should only be one but in some cases there might be more than one depending on if an administrator has been editing/removing members
Declaration
IEnumerable<IIdentityUserLogin> Find(string loginProvider, string providerKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | loginProvider | |
System.String | providerKey |
Returns
Type | Description |
---|---|
IEnumerable<IIdentityUserLogin> |
GetExternalLogins(Guid)
Returns all user logins assigned
Declaration
IEnumerable<IIdentityUserLogin> GetExternalLogins(Guid userOrMemberKey)
Parameters
Type | Name | Description |
---|---|---|
Guid | userOrMemberKey |
Returns
Type | Description |
---|---|
IEnumerable<IIdentityUserLogin> |
GetExternalLoginTokens(Guid)
Returns all user login tokens assigned
Declaration
IEnumerable<IIdentityUserToken> GetExternalLoginTokens(Guid userOrMemberKey)
Parameters
Type | Name | Description |
---|---|---|
Guid | userOrMemberKey |
Returns
Type | Description |
---|---|
IEnumerable<IIdentityUserToken> |
Save(Guid, IEnumerable<IExternalLogin>)
Saves the external logins associated with the user
Declaration
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 |
Remarks
This will replace all external login provider information for the user
Save(Guid, IEnumerable<IExternalLoginToken>)
Saves the external login tokens associated with the user
Declaration
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 |
Remarks
This will replace all external login tokens for the user