Show / Hide Table of Contents

Class UserNameIdentityResolver

Resolver for SuperOffice "native" user name + password authentication

Inheritance
object
AssociateResolver
UserNameIdentityResolver
Implements
ISoIdentityResolver
Inherited Members
AssociateResolver.GetInfoAboutUser()
AssociateResolver.IsPasswordValid(int, string, string)
AssociateResolver.SecretFromPassword(int, string)
AssociateResolver.SecretFromPassword(int, string, string)
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: SuperOffice.Security.Principal
Assembly: SoDataBase.dll
Syntax
[SoIdentityResolver("UserNameIdentityResolver", 2000)]
public sealed class UserNameIdentityResolver : AssociateResolver, ISoIdentityResolver
Remarks

SuperOffice passwords are stored in the credentials table, with the CRM5/PASSWORD identifier. The secret contains a db-tag + associate_id salted hash of the password, non-reversible. Just knowing the hash will not get in either...

Constructors

UserNameIdentityResolver()

Resolver for SuperOffice "native" user name + password authentication

Declaration
public UserNameIdentityResolver()
Remarks

SuperOffice passwords are stored in the credentials table, with the CRM5/PASSWORD identifier. The secret contains a db-tag + associate_id salted hash of the password, non-reversible. Just knowing the hash will not get in either...

Fields

DbCredentialType

How is this kind of credential identified in the database

Declaration
public const string DbCredentialType = "CRM5/PASSWORD"
Field Value
Type Description
string
Remarks

SuperOffice passwords are stored in the credentials table, with the CRM5/PASSWORD identifier. The secret contains a db-tag + associate_id salted hash of the password, non-reversible. Just knowing the hash will not get in either...

Methods

ResolveIdentityAsync(IEnumerable<ClaimsIdentity>, SoConnection)

Resolver for SuperOffice "native" user name + password authentication

Declaration
public override Task<(ClaimsIdentity claims, string reason)> ResolveIdentityAsync(IEnumerable<ClaimsIdentity> identities, SoConnection dbConnection)
Parameters
Type Name Description
IEnumerable<ClaimsIdentity> identities
SoConnection dbConnection
Returns
Type Description
Task<(ClaimsIdentity claims, string reason)>
Overrides
AssociateResolver.ResolveIdentityAsync(IEnumerable<ClaimsIdentity>, SoConnection)
Remarks

SuperOffice passwords are stored in the credentials table, with the CRM5/PASSWORD identifier. The secret contains a db-tag + associate_id salted hash of the password, non-reversible. Just knowing the hash will not get in either...

Implements

ISoIdentityResolver

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top