Skip to content

AuthenticationExtension.cs methods not run by SSRS #242

Open
@r-coursera1

Description

@r-coursera1

I have an almost working implementation for forms authentication SSRS.
The only issue is that none of the methods implemented by AuthenticationExtension.cs are getting called by SSRS

I tried to log it using Nlog but the interface functions (and the property) implemented in AuthenticationExtension.cs don't seem to get run by the SSRS !


public class AuthenticationExtension : IAuthenticationExtension2, IExtension
 {
 // .... other stuff

  Logger _logger;

public AuthenticationExtension()
{
   _logger = LogManager.GetCurrentClassLogger();
}

LocalizedName 
{ 
 get 
   {
    _logger.Info("LocalizedName"); 
    return null;
 } 
}

public bool LogonUser(string userName, string password, string authority)
{
    _logger.Info("LogonUser");
    return true;
}

public bool IsValidPrincipalName(string principalName)
{
  _logger.Info("IsValidPrincipalName");
  return true;
}

// other stuff
}


NLog logging works perfectly in Login.aspx.cs
But, no NLog logs for these 3 methods!

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