Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Asset Information Management

Integrate CONNECT Services with AIM-A

  • Last UpdatedDec 02, 2024
  • 4 minute read

CONNECT allows account administrators to create and manage service applications. For each service application created, a relevant Auth0, non-interactive application must be created. Administrators must be able to copy the client credentials for this application from the Connect portal.

Important: Service application integration in CONNECT is restricted functionality. Please contact your AVEVA representative for more information.

For more information, refer to the CONNECT Help Service Applications document that is available upon request through AVEVA representatives.

Service application creation and role assignments

Following these steps below, CONNECT account administrators can create a service application:

  1. Login to CONNECT at https://connect.aveva.com/.

  2. Select Integrations.

    Integrations selected on the CONNECT navigation rail.

  3. Selecting Create service application displays a list of service applications.

  4. Create a new service application by providing the name and description and select Service Role. CONNECT will prompt to select Service, Folder and Role. Select Data Pipeline/Load Reporting or Asset Information Management - Advanced based on which API you want to use this token for. Also select the respective service role.

    The dialog for creating a new service, with the Service role option selected.

  5. Select Create. The list of service applications page is displayed.

  6. The status of the new service application is Creating. The status will be updated to Active on successful application creation.

    A list of Service Applications in CONNECT. The status of the new application is shown as Creating, all others are Active.

  7. Copy the client credentials for the service application from the menu as shown below.

    The context menu for one of the service applications, including the client credentials.

Service application token generation

Using the service application client credentials and the Client Credentials Flow mechanism, an access token can be generated. Follow the guidelines available in the Auth0 portal at https://auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow to generate an access token.

C# Sample Application

var client = new HttpClient(new HttpClientHandler() { UseDefaultCredentials = false });

client.DefaultRequestHeaders.Accept.Clear();

client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/x-www-form-urlencoded"));

var postData = new List<KeyValuePair<string, string>>()

{

new KeyValuePair<string, string>("grant_type", "client_credentials"),

new KeyValuePair<string, string>("scope", "connect"),

new KeyValuePair<string, string>("client_id", clientId),

new KeyValuePair<string, string>("client_secret", clientSecret)

};

var tokenResponse = client.PostAsync("https://signin.connect.aveva.com/oauth/token", new FormUrlEncodedContent(postData)).Result;

var token = await tokenResponse.Content.ReadAsAsync<AccessTokenModel>();

Notes

  • Always cache the token that is generated. The token is valid for 30 minutes.

  • The token generation is rate limited, that is, a maximum of 5 tokens can be generated per service application within a 5 minutes window.

3DVis Integration

  1. Log into your AVEVA CONNECT account.

  2. Go to Folder Management.

  3. Open the folder where your AIM-h service is enabled, to further enable the 3DVis Cloud Streaming Service in the same folder.

     The folder management page in CONNECT.

  4. After selecting the Folder, identify the 3DVis Cloud Streaming Service and open the sub-menu using the vertical 3 dots.

    The 3DVis Cloud Streaming Service tile in CONNECT. 

  5. Select Manage integrations.

    All the 3DVis integration points for the CONNECT account will be listed.

  6. Enable the correct integration for the Folder/environment.

    Select AIM-A to 3DVis integration options in CONNECT.

  7. After selecting the Folder, identify the 3DVis Cloud Streaming Service and open the sub-menu using the vertical 3 dots. 

  8. To apply roles, open the sub-menu using the vertical 3 dots on 3DVis Cloud Streaming Service and select Manage roles.

    The Manage roles option selected from the 3DVis Cloud Streaming Service tile context menu.

  9. After selecting Manage roles, the Roles screen will open. Use Assign role to create any new role assignments as follows:

    Type= Service role

    Service = 3DVis Cloud Streaming Service 

    Folder = <The folder associated to the AIM instance>

    Role = Render User 

    Models The access tags = Any

    Groups = <Your CONNECT group you may wish to apply, for example, Power User> 

    Users = <specific usernames outside of groups> 

  10. Select Save.

    In This Topic
    Related Links
    TitleResults for “How to create a CRG?”Also Available in