Crystal Reports Server 2008 - Come si fa a creare un APS token di accesso a livello di codice in .Net
-
22-09-2019 - |
Domanda
Potrebbe qualcuno mi guida per creare un token di accesso APS in .Net di programmazione? Ho bisogno di utilizzare questo token per la segnalazione URL ....
Soluzione
Public Shared Function Authenticate (account As String, password As String, serverName As String, authenticationType As String) As String
Dim sessionManager As New SessionMgr
Dim enterpriseSession As EnterpriseSession
Try
enterpriseSession = sessionManager.Logon(account, password, serverName, authenticationType)
'any client computer, 120 minutes, 1000 logons
Return enterpriseSession.LogonTokenMgr.CreateLogonTokenEx("", 120, 1000)
Catch ex As Exception
Throw ex
End Try
End Function
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow