Click here to Skip to main content
15,905,967 members

Comments by Member 12259080 (Top 4 by date)

Member 12259080 23-Mar-23 4:26am View    
Hello @Andre Oosthuizen,

Thanks for all your support and answer, we tried to implement the code snippet which you shared, unfortunately we are experiencing above exception error that I already shared with you, and we couldn't be able to fix that.

Also, as you recommended to check the process flow (Next step) that Microsoft has been provided the link on custom security. We had cross verified the entire steps; I don't think we have missed anything from the link but still we are getting error.

We completely troubleshooted in all possible ways to fix the error (Authentication cookie).

Once again, thank you so much for providing the much-needed assistance we needed during this period.

Any other solution you could suggest is highly appreciated.

Thanks
Gurudath.R

Member 12259080 2-Mar-23 1:25am View    
Hi @Andre Oosthuizen,

Thanks for your answer. Implemented the above piece of code which you shared, but I am facing an error while building the application saying

"Error CS0535 'AuthenticationExtension' does not implement interface member 'IAuthenticationExtension2.GetUserInfo(IRSRequestContext, out IIdentity, out IntPtr)' CustomSecurity"

Also, can't be able to add Interface member "IAuthorizationExtension2"

Interface IAuthenticationExtension2 contains memebers as shown below,

public interface IAuthenticationExtension2 : IExtension
{
void GetUserInfo(out IIdentity userIdentity, out IntPtr userId);
void GetUserInfo(IRSRequestContext requestContext, out IIdentity userIdentity, out IntPtr userId);
bool IsValidPrincipalName(string principalName);
bool LogonUser(string userName, string password, string authority);
}

GetUserInfo(IRSRequestContext requestContext, out string userName, out string authenticationType, out IEnumerable<string> roles) parameters not in the member of IAuthenticationExtension2 interface.

Appreciate your help.
Member 12259080 27-Feb-23 22:35pm View    
Hi @Andre Oosthuizen

Thanks for your comment, also bringing to your notice that, already installed custom security exception, unfortunately still authentication error persisting.

For more clarity on the problem statement, here by requesting to go through another forum link which I had created.

https://learn.microsoft.com/en-us/answers/questions/1180046/ssrs-reporting-server-2019-customsecurity-extensio

Thanks for your support and appreciate your time and patience.
Member 12259080 27-Feb-23 22:31pm View    
Hi @Andre Oosthuizen

Thanks for your answer. In our code we already implemented and enabled custom security extension, but still we are experiencing the error as Custom Security is not enabled.

In SSRS 2019, Microsoft has introduced new interface as IAuthenticationExtension2 under GetUserInfo(IRSRequestContext requestContext) method, this will call from client application.

My concern/query is can't we use GetUserInfo which contain HttpContext.Current.User that Microsoft is using in 2016 SSRS server? or how can we use HttpContext.Current.User in GetUserInfo(IRSRequestContext requestContext) method.

Any knowledge in this regard is highly appreciated.

Thanks for all your sincere support