IWsCommonJsonpGetUserAuthenticationToken Method
|
The method generates an authentication token and associates it with the account indicated. Each user is assigned a unique
token, valid for a few hours, certifying the authentication service. If you have a valid token you can make calls to methods
of WSEndUser. After each call to any method of Aruba WSEndUser, the service checks for a valid token for the account that you specify.
If this does not exist, or if the token is found to be expired, you will need to authenticate again to get it.
Namespace:
Aruba.Cloud.WsCommon
Assembly:
Aruba.Cloud.WsCommon (in Aruba.Cloud.WsCommon.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax [OperationContractAttribute]
[WebGetAttribute(ResponseFormat = WebMessageFormat.Json, UriTemplate = "GetUserAuthenticationToken/{jsonp}/{username}/?password={password}&deviceId={deviceId}&os={osType}&osver={osVersion}&lang={language}&appver={appVer}")]
Stream GetUserAuthenticationToken(
string jsonp,
string username,
string password,
string deviceId = null,
string osType = null,
string osVersion = null,
string language = null,
string appVer = null
)
<OperationContractAttribute>
<WebGetAttribute(ResponseFormat := WebMessageFormat.Json, UriTemplate := "GetUserAuthenticationToken/{jsonp}/{username}/?password={password}&deviceId={deviceId}&os={osType}&osver={osVersion}&lang={language}&appver={appVer}")>
Function GetUserAuthenticationToken (
jsonp As String,
username As String,
password As String,
Optional deviceId As String = Nothing,
Optional osType As String = Nothing,
Optional osVersion As String = Nothing,
Optional language As String = Nothing,
Optional appVer As String = Nothing
) As Stream
[OperationContractAttribute]
[WebGetAttribute(ResponseFormat = WebMessageFormat::Json, UriTemplate = L"GetUserAuthenticationToken/{jsonp}/{username}/?password={password}&deviceId={deviceId}&os={osType}&osver={osVersion}&lang={language}&appver={appVer}")]
Stream^ GetUserAuthenticationToken(
String^ jsonp,
String^ username,
String^ password,
String^ deviceId = nullptr,
String^ osType = nullptr,
String^ osVersion = nullptr,
String^ language = nullptr,
String^ appVer = nullptr
)
[<OperationContractAttribute>]
[<WebGetAttribute(ResponseFormat = WebMessageFormat.Json, UriTemplate = "GetUserAuthenticationToken/{jsonp}/{username}/?password={password}&deviceId={deviceId}&os={osType}&osver={osVersion}&lang={language}&appver={appVer}")>]
abstract GetUserAuthenticationToken :
jsonp : string *
username : string *
password : string *
?deviceId : string *
?osType : string *
?osVersion : string *
?language : string *
?appVer : string
(* Defaults:
let _deviceId = defaultArg deviceId null
let _osType = defaultArg osType null
let _osVersion = defaultArg osVersion null
let _language = defaultArg language null
let _appVer = defaultArg appVer null
*)
-> Stream
function GetUserAuthenticationToken(
jsonp : String,
username : String,
password : String,
deviceId : String,
osType : String,
osVersion : String,
language : String,
appVer : String
) : Stream
Parameters
- jsonp
- Type: SystemString
- username
- Type: SystemString
- password
- Type: SystemString
- deviceId (Optional)
- Type: SystemString
- osType (Optional)
- Type: SystemString
- osVersion (Optional)
- Type: SystemString
- language (Optional)
- Type: SystemString
- appVer (Optional)
- Type: SystemString
Return Value
Type:
StreamSee Also