Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AuthenticationExtension.cs methods not run by SSRS #242

Open
r-coursera1 opened this issue May 13, 2022 · 1 comment
Open

AuthenticationExtension.cs methods not run by SSRS #242

r-coursera1 opened this issue May 13, 2022 · 1 comment

Comments

@r-coursera1
Copy link

r-coursera1 commented May 13, 2022

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!

@r-coursera1
Copy link
Author

r-coursera1 commented May 13, 2022

As per #237 (comment),
I attached my debugger to the running processes

ReportingServicesService.exe
RSPortal.exe

but the breakpoints set at the beginning of LogonUser(),LocalizedName, IsValidPrincipalName() are still not hit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant