Changes between Version 12 and Version 13 of udg/ecoms/RPackage/authentication


Ignore:
Timestamp:
Mar 31, 2016 4:05:20 PM (6 years ago)
Author:
juaco
Comment:

--

Legend:

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

    v12 v13  
    33The '''ECOMS-UDG''' is based on a password-protected THREDDS using OPeNDAP and other remote data access protocols. Therefore, before accessing the data, authentication is required. To this aim, user's must be registered and activate the required roles, as described in the [http://meteo.unican.es/trac/wiki/udg/ecoms/dataserver/registration Registration section].
    44
    5 Once registered as users, the registration within the R session can be easily accomplished assuming that we already have a valid username, role and password, with a simple call to the function `loginECOMS_UDG`, providing HTPP authentication:
     5Once registered as users, the registration within the R session can be easily accomplished assuming that we already have a valid username, role and password, with a simple call to the function `loginUDG`, providing HTTP authentication:
    66
    77{{{#!comment  To this aim, in the following lines we illustrate how to proceed using the R-to-Java interface provided by the package `rJava` (For more information on the authentication procedure click on [http://www.unidata.ucar.edu/software/netcdf-java/v4.3/javadocAll/ucar/nc2/util/net/HTTPBasicProvider.html the help page]).
     
    1212username <- "myUsername" # This is a character string with the username
    1313password <- "myPassword" # This is a character string with the password
    14 loginECOMS_UDG(myUsername, myPassword)
     14loginUDG(myUsername, myPassword)
    1515}}}
    1616
    17 In 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.
     17In case the connection is performed via a proxy server, it is necessary to set it up prior to the authentication step.
    1818
    1919{{{
     
    2121proxyHost <- "proxy.host.com" # Your institution Proxy configuration: host
    2222proxyPort <- as.integer(1234) # and port
    23 loginECOMS_UDG(myUsername,
    24                myPassword,
    25                proxy.host = proxyHost,
    26                proxy.port = proxyPort)
     23loginUDG(myUsername,
     24         myPassword,
     25         proxy.host = proxyHost,
     26         proxy.port = proxyPort)
    2727
    2828}}}