Skip to content

Xtensive.Orm 7.2beta-1 Authentication issue #393

Closed
@AnamikaDe8

Description

@AnamikaDe8

@SergeiPavlov @alexyakunin @shuruev @AlexUstinov
We have a question.
Background

A .Net 4.7.2 web project with razor pages has been upgraded to .net 8.

  1. Servicestack 3 upgraded to ServiceStack 8
  2. Xtensive.Orm 5  7.2-Beta

We are facing an issue while trying to authenticate “auth/credentials” using IAuthenticationService Interface of Xtensive.orm.Security.

The IAuthenticationService.Authenticate returns null error

protected override IPrincipal Authenticate(string userNameOrEmail, string password)
{
var config = this.Session.GetSecurityConfiguration();
var service = this.Session.Services.Get(config.HashingServiceName);Error here 

 if (service == null)
     throw new InvalidOperationException(string.Format("Hashing service by name {0} is not found. Check Xtensive.Security configuration", config.HashingServiceName));

}
error
HashingServiceName = plain

We are guessing, the services are not getting registered properly.

We have used Domain Factory to initialize the DomainConfig and implemented a auth class from IAuthenticationService.

Could you please help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions