UserContextGetDirectLoginURL Method |
Returns a direct login URL
BugzID: 92963 - Platform way to get a one-time login url for a user id
Namespace:
NetQuarry.Security
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntaxpublic static string GetDirectLoginURL(
IAppContext appCxt,
string userID,
string rootUrl,
string appID = null,
int timeoutMinutes = 20,
string proxyUserGUID = null
)
Public Shared Function GetDirectLoginURL (
appCxt As IAppContext,
userID As String,
rootUrl As String,
Optional appID As String = Nothing,
Optional timeoutMinutes As Integer = 20,
Optional proxyUserGUID As String = Nothing
) As String
Parameters
- appCxt
- Type: NetQuarryIAppContext
The application context object. - userID
- Type: SystemString
The user_id value to use to build the URL - rootUrl
- Type: SystemString
The root of the fully qualified url to use - appID (Optional)
- Type: SystemString
The application id to use. If this is null, the current application's ID is used. - timeoutMinutes (Optional)
- Type: SystemInt32
The number of minutes that the URL should last. - proxyUserGUID (Optional)
- Type: SystemString
The user_guid value for the proxy user (typically admin user using a login-as scheme)
Return Value
Type:
StringA one-time use login url, valid for timeoutMinutes.
See Also