create_session_from_granta_stk#

create_session_from_granta_stk(stk_configuration, api_session_configuration=None, idp_session_configuration=None)#

Set up the client authentication using the configured authentication from a Granta MI Scripting Toolkit session.

Parameters
stk_configurationdict

Configuration dictionary provided by the Granta MI Scripting Toolkit session.

api_session_configurationSessionConfiguration, optional

Additional configuration settings for the requests session when connected to the Granta MI Service Layer.

idp_session_configurationSessionConfiguration, optional

Additional configuration settings for the Requests session when connected to the OpenID identity provider.

Notes

You must have version 2.4 or later of the Granta MI Scripting Toolkit installed. Otherwise, you must use the appropriate class method to configure the Requests session.