authenticate_dhs: DHS Website Authentication

View source: R/authentication.R

authenticate_dhsR Documentation

DHS Website Authentication

Description

Authenticate Users for DHS website

Usage

authenticate_dhs(config)

Arguments

config

Object of class 'rdhs_config' as produced by 'read_rdhs_config' that must contain a valid 'email', 'project' and 'password'.

Details

If the user has more than one project that contains the first 30 characters of the provided project they will be prompted to choose which project they want. This choice will be saved so they do not have to enter it again in this R session.

Value

Returns list of length 3:

  • user_name: your email usually

  • user_pass: your password you provided

  • proj_id: your project number

Note

Credit for some of the function to https://github.com/ajdamico/lodown/blob/master/R/dhs.R


OJWatson/rdhs documentation built on April 4, 2024, 10:46 a.m.