ArmSecurityCenterModelFactory.AccessTokenAuthentication Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static Azure.ResourceManager.SecurityCenter.Models.AccessTokenAuthentication AccessTokenAuthentication(string username = default, string accessToken = default);
static member AccessTokenAuthentication : string * string -> Azure.ResourceManager.SecurityCenter.Models.AccessTokenAuthentication
Public Shared Function AccessTokenAuthentication (Optional username As String = Nothing, Optional accessToken As String = Nothing) As AccessTokenAuthentication
Parameters
- username
- String
The user name that will be used while authenticating with the onboarded environment.
- accessToken
- String
The access token that will be used while authenticating with the onboarded environment.
Returns
A new AccessTokenAuthentication instance for mocking.