Skip to main content
McAfee Enterprise MVISION Cloud

Authenticate to CNAPP APIs

 To perform API operations with the MVISION CNAPP APIs it is required ot use an access / refresh token. The token has a limited lifetime and can be obtained using onf the following methods

Get an Access Token with username / password

API: POST  https://www.myshn.net/neo/neo-auth-s..._type=password

Request Headers:   x-auth-username: <<Email of MVISION Cloud user>> 
                                    x-auth-password: <<Password of MVISION Cloud user>> 

Response : 

{
    "access_token": "eyJhbGciOiJSUzI1Ni...IgWkUWn0cQ",
    "token_type": "bearer",
    "refresh_token": "eyJhbGciOiJSUzI1Ni...OkkNirxVO5Q",
    "expires_in": 509,
    "scope": "read write",
    "tenantName": "My test",
    "tenantID": 12345,
    "user": "abc@xyz.com",
    "userId": 141839,
    "email": "abc@xyz.com",
    "jti": "eecb9530-2ae5-4fa5-a128-1f436940c5c4"
}

Get an Access Token with IAM token

API: POST  https://www.myshn.net/neo/neo-auth-s...type=iam_token

Request Headers: x-iam-token: <<Token issued by MVISION IAM service>> 

Response : 

{
    "access_token": "eyJhbGciOiJSUzI1Ni...IgWkUWn0cQ",
    "token_type": "bearer",
    "refresh_token": "eyJhbGciOiJSUzI1Ni...OkkNirxVO5Q",
    "expires_in": 509,
    "scope": "read write",
    "tenantName": "My test",
    "tenantID": 12345,
    "user": "abc@xyz.com",
    "userId": 141839,
    "email": "abc@xyz.com",
    "jti": "eecb9530-2ae5-4fa5-a128-1f436940c5c4"
}

  • Was this article helpful?