c# - SQL Reporting Services custom security extension approach to use for multiple applications -
i have created custom security extension describes here: http://msdn.microsoft.com/en-us/library/ms155029.aspx.
we have application store username, groups, etc. custom security extension fetch data application. works fine far.
now there new challenge: want have multiple applications, use same report server. approach is, custom security extension connects different databases authentication , authorization. implemented far , in theorey works fine.
i run in 1 problem make me headaches. thought, simple identify each connection custom table store session (request cookie application, works in uilogon.aspx.cs
, logon.aspx.cs
) , domain (via request.url.host
in same pages). store data in custom created table in reportserver database , in other methods cookie session informationen retrieve info domain choose correct database.
my problem: loose cookie information identify session. tried made singelton instance class store each instance, not "application" wide. thought, somehow sql reporting services must hold info session (probably in own ssrs session cookie). if accessable can store domain , ssrs session cookie identify it.
so, how can read / ssrs session cookie information in methods. e.g.
public bool checkaccess( string username, intptr usertoken, byte[] secdesc, folderoperation requiredoperation) { // here need know in ssrs session }
anyone know how or how identify unique session can map session additional information?
found solution....
i send own session cookie server identify !
<passthroughcookies> <passthroughcookie>_cookie_session</passthroughcookie> </passthroughcookies>
then have var cookie = httpcontext.current.request.cookies["_cookie_session"];
cookie , can id identify instance.
Comments
Post a Comment