HypSetBasicAuthToken
Describes the Oracle Smart View for Office VBA function, HypSetBasicAuthToken.
Data provider types: Planning, Planning Modules, Financial Consolidation and Close, Tax Reporting
Description
The HypSetBasicAuthToken function authenticates users using the Basic Auth mechanism in supported cloud instances. It bypasses regular form-based authentication.
This function is useful for environments that support Basic Auth for all protocols.
Syntax
Public Declare PtrSafe Function HypSetBasicAuthToken Lib "HsAddin" (ByVal vtUser As Variant, ByVal vtPassword As Variant) As Long
ByVal vtUser As Variant
ByVal vtPassword As Variant
Parameters
vtUser: A valid user name
vtPassword: The password for this user
Return Values
Returns 0 if successful; otherwise, returns the appropriate error code.
Example
Sub LoginUsingBasicAuthForEPMCloud()
sts = HypSetBasicAuthToken("<"<user>", "<password>")
If sts = 0 Then
MsgBox "successful"
End If
End Sub