Changes between Version 11 and Version 12 of udg/ecoms/RPackage/authentication
- Timestamp:
- Mar 9, 2015 5:46:38 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
udg/ecoms/RPackage/authentication
v11 v12 1 1 == Authentication 2 2 3 The '''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 [ wiki:EcomsUdg/DataServer/Registration Registration section].3 The '''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]. 4 4 5 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: … … 10 10 {{{ 11 11 #!text/R 12 > username <- "myUsername" # This is a character string with the username 13 > password <- "myPassword" # This is a character string with the password 14 > loginECOMS_UDG(myUsername, myPassword) 15 12 username <- "myUsername" # This is a character string with the username 13 password <- "myPassword" # This is a character string with the password 14 loginECOMS_UDG(myUsername, myPassword) 16 15 }}} 17 16 … … 20 19 {{{ 21 20 #!text/R 22 > proxyHost <- "proxy.host.com" # Your institution Proxy configuration: host 23 > proxyPort <- as.integer(1234) # and port 24 > loginECOMS_UDG(myUsername, myPassword, proxy.host = proxyHost, proxy.port = proxyPort) 21 proxyHost <- "proxy.host.com" # Your institution Proxy configuration: host 22 proxyPort <- as.integer(1234) # and port 23 loginECOMS_UDG(myUsername, 24 myPassword, 25 proxy.host = proxyHost, 26 proxy.port = proxyPort) 25 27 26 28 }}} 27 29 28 Note that the object `proxyHost` is a character string while the `proxyPort` must be an integer .30 Note that the object `proxyHost` is a character string while the `proxyPort` must be an integer value. 29 31 30 32