File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,7 +68,10 @@ configuration = slurmrest_python.Configuration(
6868# satisfies your auth use case.
6969
7070# Configure API key authorization: user
71- configuration.api_key[' user' ] = os.environ[" API_KEY" ]
71+ configuration.api_key[' user' ] = os.environ[" USERNAME" ]
72+
73+ # Configure API key authorization: token
74+ configuration.api_key[' token' ] = os.environ[" API_KEY" ]
7275
7376# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
7477# configuration.api_key_prefix['user'] = 'Bearer'
@@ -78,9 +81,6 @@ configuration = slurmrest_python.Configuration(
7881 access_token = os.environ[" BEARER_TOKEN" ]
7982)
8083
81- # Configure API key authorization: token
82- configuration.api_key[' token' ] = os.environ[" API_KEY" ]
83-
8484# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
8585# configuration.api_key_prefix['token'] = 'Bearer'
8686
You can’t perform that action at this time.
0 commit comments