.. _ood-auth-map-usage: Usage ===== The :ref:`ood-auth-map` scripts are all designed to take a URL-encoded authenticated username and map it to a local system username. In all cases the included scripts follow the given format: .. code-block:: sh bin/ood_auth_map. [OPTIONS] Where ``TYPE`` can be either ``regex`` or ``mapfile``. A **successful** mapping will return the local username to ``STDOUT``: .. code-block:: sh $ bin/ood_auth_map.mapfile http%3A%2F%2Fcilogon.org%2FserverA%2Fusers%2F50191 jnicklas $ An **unsuccessful** mapping will return an empty string to ``STDOUT``: .. code-block:: sh $ bin/ood_auth_map.regex -r '^(\w+)@osc.edu$' jnicklas@gmail.com $ .. note:: The authenticated username can be specified as a URL-encoded string to avoid having to escape special characters in the shell. For any of the provided scripts you can display a quick reference of the capabilities offered by that script with: .. code-block:: sh bin/ood_auth_map. --help .. toctree:: :maxdepth: 2 :caption: Provided Scripts scripts/regex scripts/mapfile