Authentication
Authenticate
Before You Begin
- OData APIs are hosted as a part of APM Web API service.
- The Meridium Core (Foundation) license is required to use the OData functionalities.
Note: For more information on OData, refer to the OData documentation.
About This Task
You must authenticate OData requests to the APM database. The APM environment can be authenticated using Predix UAA. You must make two calls to use the Predix UAA authentication. The first is a HTTP POST call to get the access token and then a GET call to login.
Procedure
Get the access token.
Attributes | Values |
---|---|
Resource URL | {{uaa-uri}}/oauth/token |
HTTP Method | POST |
Header | Description |
---|---|
Authorization | Basic {{uaa-basic-auth-key}} |
Accept | application/json |
Content Type | application/x-www-form-urlencoded |
Provide the following parameters in the request body in the x-www-form-urlencoded format:
Parameters | Description |
---|---|
grant_type | password |
username | {{uaa-username}} |
password | {{uaa-user-password}} |
An access token is generated.
Note: You cannot access OData using your Single Sign-On (SSO) credentials. You must have a valid User Account and Authentication (UAA) account to access OData. For more information on how to obtain a UAA account, consult GE Vernova Professional Services.