Hi,
Our product support siteminder like reading the httpheader token and pass
thro formauthendicat ion method and logs on to our product(code 1). Like Site
minder user id will be crossverified and logged in.
We have a document where we have MACRO which trying to connect to out prodcut
with NEW IE Instance.
oHttp.Open "POST", sServerType + "://" + sServerName + "/eipzone/vinkit-
external-interfaces/SaveContenttoUp loadDir.aspx", False
But its assuming as new instance and expecting userid password. We are not
sure how to validate or bypass this validation using siteminder token?
code 1:
-----------
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.
EventArgs) Handles MyBase.Load
' Process if the authentication mode is third party such as site
minder else redirect to default page
Dim sUserName As String
If ConfigurationSe ttings.AppSetti ngs.Get("ThirdP artyAuthenticat ion").
Trim.ToLower.Eq uals("on") Then
sUserName = GetUserName()
If sUserName.Equal s(String.Empty) Then
divNoAccess.Inn erText = UIUtilities.Get Message("", 242, Me.
Page)
Exit Sub
End If
FormsAuthentica tion.RedirectFr omLoginPage(sUs erName, False)
Else
'Response.Redir ect("default.as px")
End If
End Sub
Private Function GetUserName() As String
' Get the UserName from Http Headers if it is a valid request,
otherwise return null
Dim sUserName As String = String.Empty
If Not Request.Headers .Get(Configurat ionSettings.App Settings.Get
("UserHttpHeade r").Trim()) Is Nothing Then
sUserName = Request.Headers .Get(Configurat ionSettings.
AppSettings.Get ("UserHttpHeade r").Trim()).Tri m()
Else
sUserName = ConfigurationSe ttings.AppSetti ngs.Get
("DefaultUser") .Trim()
End If
Return sUserName
End Function
Thanks
Malar
Our product support siteminder like reading the httpheader token and pass
thro formauthendicat ion method and logs on to our product(code 1). Like Site
minder user id will be crossverified and logged in.
We have a document where we have MACRO which trying to connect to out prodcut
with NEW IE Instance.
oHttp.Open "POST", sServerType + "://" + sServerName + "/eipzone/vinkit-
external-interfaces/SaveContenttoUp loadDir.aspx", False
But its assuming as new instance and expecting userid password. We are not
sure how to validate or bypass this validation using siteminder token?
code 1:
-----------
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.
EventArgs) Handles MyBase.Load
' Process if the authentication mode is third party such as site
minder else redirect to default page
Dim sUserName As String
If ConfigurationSe ttings.AppSetti ngs.Get("ThirdP artyAuthenticat ion").
Trim.ToLower.Eq uals("on") Then
sUserName = GetUserName()
If sUserName.Equal s(String.Empty) Then
divNoAccess.Inn erText = UIUtilities.Get Message("", 242, Me.
Page)
Exit Sub
End If
FormsAuthentica tion.RedirectFr omLoginPage(sUs erName, False)
Else
'Response.Redir ect("default.as px")
End If
End Sub
Private Function GetUserName() As String
' Get the UserName from Http Headers if it is a valid request,
otherwise return null
Dim sUserName As String = String.Empty
If Not Request.Headers .Get(Configurat ionSettings.App Settings.Get
("UserHttpHeade r").Trim()) Is Nothing Then
sUserName = Request.Headers .Get(Configurat ionSettings.
AppSettings.Get ("UserHttpHeade r").Trim()).Tri m()
Else
sUserName = ConfigurationSe ttings.AppSetti ngs.Get
("DefaultUser") .Trim()
End If
Return sUserName
End Function
Thanks
Malar