Changes between Version 4 and Version 5 of udg/ecoms/RPackage/authentication


Ignore:
Timestamp:
Jun 13, 2013 9:16:48 AM (8 years ago)
Author:
juaco
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • udg/ecoms/RPackage/authentication

    v4 v5  
     1== Authentication
     2
    13The SPECS-EUPORIAS Data Portal is based on a password-protected THREDDS data server providing metadata and data access to a set of geo-referenced atmospheric variables using OPeNDAP and other remote data access protocols. Therefore, before accessing the data, authentication is required at the SPECS-EUPORIAS Data Portal.
    24
     
    911> aux <- .jnew("ucar/nc2/util/net/HTTPBasicProvider", username, password)
    1012> J("ucar.nc2.util.net.HTTPSession")$setGlobalCredentialsProvider(aux)
     13
    1114}}}
     15
     16
     17== IMPORTANT: proxy server connections
     18
     19In case the connection is performed via a proxy, it is necessary to set up the proxy prior to the authentication step, in order to connect to the server.
     20
     21{{{
     22> proxyHost <- "proxy.host.com" # Your institution Proxy configuration: host
     23> proxyPort <- as.integer(1234) # and port
     24> J("ucar.nc2.util.net.HTTPSession")$setGlobalProxy(proxyHost,proxyPort)
     25
     26}}}
     27
     28Note that the object `proxyHost` is a character string, whereas the `proxyPort` must be an integer.
     29
     30