Authentication

Authentication

is an option for cloud, web and SSH access functions that allows authentication parameters to be given.

Details

  • Possible settings for Authentication include:
  • Automaticbase authentication on CloudConnect credentials
    <|"Username",|>give explict username, etc. for authentication
    PermissionsKey["key"]give a permissions key for authentication
    SecuredAuthenticationKey[assoc]give an OAuth-secured authentication key
    associnsert specified explicit elements in the HTTP request
  • In the form Authentication->assoc, the association assoc can contain the following elements:
  • "Username"username to use for authentication
    "Password"password to use for authentication
    "Headers"list of headers to be sent to the server
    "Query"HTTP query string or list of parameter-value pairs
    "SSHKey"SSH identity
    "SSHKeyPassword"passphrase string to use to decrypt SSHKey
  • An SSH identity can be given in the form "SSHKey"->File[ident], where ident is a file containing an SSH private key. It can also be given as "SSHKey"->"string", where "string" is an SSH private key.

Examples

Basic Examples  (2)

Deploy a cloud object with permissions granted to a PermissionsKey:

In[1]:=
Click for copyable input
Out[1]=

Read the cloud object contents using a PermissionsKey for Authentication:

In[2]:=
Click for copyable input
Out[2]=

Copy a file from a remote machine using an identity file:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2016
(11.0)
|
Updated in 2019
(12.0)