This section describes the authentication process to enable integration between Smart Materials and EcoSys.
Two methods are available for authentication and they are as following:
-
Default: this method use query string and these two project defaults; ZI_E_UN and ZI_E_PWD.
-
OAuth2: this method is based on OAuth protocol and uses these project defaults; ZI_E_IURL, ZI_E_UN and ZI_E_PWD. Also, ZI_E_UN is not a mandatory project default. To know more about these project defaults, refer EcoSys Integration
If the value of the project default ZI_E_IURL (used for identity server value) is set to empty (null), then the default authentication mechanism gets applied. If a value is set, then the OAuth2 authentication gets applied.
Enable Oauth for EcoSys API
To enable this,Client/application (refers to Smart Materials Integration services) either uses Client-Credentials flow or Password flow depending on the identity server or user requirements. In both the flows, user must make the changes in the following custom package.
Package Name:M_PCK_ECOSYS_CUSTOM
Procedure: get_token_params.
-
For Client - Credential flow, user must declare a value for these parameters; client_id, client_secret, and scope.
-
For Password flow,you must declare value for these parameters; client_id, client_secret, and scope.
User need to add values for few more parameters that are available as a sample in your package. For details, contact our support team.
To create a Client ID, Client Secret, and Scope, refer Configure Okta for Smart API, REST OAuth or EcoSys Connect .