get_token_async

async omni.nvcf.core.get_token_async(session: aiohttp.client.ClientSession, client_id: str, ssa_secret: str, ssa_url: str = SSA_URL.STG) str

Given an SSA client and secret, request and return a JWT authorization token allowing calls to invoke NVCF functions.

Parameters
  • session (aiohttp.ClientSession) – Client session.

  • client_id (str) – SSA client id.

  • ssa_secret (str) – SSA secret for the SSA client.

  • ssa_url (str, optional) – URL for SSA authentication. Defaults to util.SSA_URL.STG.

Returns

JWT token.

Return type

str