Skip to main content
Please contact Ansys Granta Technical Support for information on supported OpenID Connect Identity Providers, and for configuration and setup documentation.

Access Granta MI using OpenID Connect

In MI Scripting Toolkit 2.2 or later, OIDC authentication is exposed through the Session class in the same way as other authentication options. For interactive use, this is as simple as setting oidc=True in the constructor.
Previous cell output:

Unattended use

For unattended use, OIDC tokens can be stored securely in the OS credential manager. For Windows this is the Windows Credential Locker, for linux this may be Freedesktop Secret Service or the dbus KWallet. Tokens can be persisted with the Session.persist_oidc_token() method.
Previous cell output:
OpenID Connect tokens can then be extracted from the store and used to create a new Session object with no user interaction.
Previous cell output: