mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-05-31 16:28:15 +08:00
send API password as 'bearer' (#351)
This commit is contained in:
@@ -3666,9 +3666,9 @@ if __name__ == "__main__":
|
||||
'app_public_key': key_formatting.decompress( ECPrivateKey(private_key).public_key().to_hex() ),
|
||||
}
|
||||
|
||||
# authentication: basic {password}
|
||||
# authentication: bearer {password}
|
||||
headers = {
|
||||
'Authorization': 'basic {}'.format(api_password)
|
||||
'Authorization': 'bearer {}'.format(api_password)
|
||||
}
|
||||
|
||||
# make the authentication token
|
||||
|
||||
Reference in New Issue
Block a user