Forum Discussion
How can I remove auth page when open Report Server page?
- 9 years ago
Solution for the exception that is taken for power Bi reports while using custom security extension :
*****************************************2017-08-03 11:35:16.8710|ERROR|90|Failure in conceptualschema| RequestID = 5a55046e-0305-361b-e214-71fd8b0d79ff ClientSessionID = 3aee7b14-c24b-d6ac-237d-38809550b1bb System.NotSupportedException: PortalIdentity is not supported.
at Microsoft.PowerBI.ReportServer.ExploreHost.UserIdentityConnectionImpersonatorFactory.CreateImpersonator(IIdentity identity)
at Microsoft.PowerBI.ReportServer.ExploreHost.RSPowerViewHandler.GetModelInfo(String id)
***********************
The data source attempting to use integrated security which is not supported with custom Auth. If you edit the data source for the report and use stored credentials it should work.
Hi wildcatstar, Report Server will require user context for both secuirty and access control needs. That's why you have to setup one Auth method to use the server. However, if you are really sure to remove the auth, there's one workaround that you can implement your own custom auth extension, just return true for each auth request. You can find custom auth example in githut: https://github.com/Microsoft/Reporting-Services/tree/master/CustomSecuritySample
Hi Anonymous, Thank you very much for your help.
I followed the step in https://github.com/Microsoft/Reporting-Services/tree/master/CustomSecuritySample .
I modified the GetUserInfo function like this:
And at last, I can login in as "Administrator" with out the auth page.
It seems the GetUserInfo method worked.
But when I try to save a report to the Server,I got an error dialog:
And I find the error log:
I don't know why GetUserInfo will get a null reference error.
By the way,I didn't Generate Machine Keys and Configure Passthrough cookies, Because I return true in each request method.
Is there something wrong?