Skip to main content
To both develop and use Granta MI Connected Materials, you need to authenticate using Ansys ID. For developing your own plugin to Granta MI Connected Materials, send the following information to your Ansys representative:
  • Your Name
  • Your email account
  • The Product team you are working with
To enable your customers to access Granta MI Connected Materials from your application, their Ansys ID accounts must also be enabled, send the following information about each account in CSV format to your Ansys representative:
  • Name
  • Email address
  • Company
  • Database access required

C# example

In C# ASP.NET Core, authentication against Ansys ID is fairly simple. There are libraries you can use, and you’ll need to specify the following in your authentication flow:
If done correctly, you will get a popup in your system’s browser. Use the token in the response from the authentication flow in the Authorization header in subsequent API requests. Only requests to the Granta Integration Service need this header (not the call to open a web browser to display the Granta Material Picker).

Python example

In Python, there is an MSAL library that can be used to retrieve an access token for the Granta Integration Service. First, install MSAL.
And use these parameters to authenticate in a browser with Azure AD B2C.
Use this authorization header in subsequent HTTP requests.