asulibraries / islandora_handle

A Drupal 8 Module for managing handles in a Handle.net server
0 stars 0 forks source link

Basic Authorization #1

Open dnwk opened 4 years ago

dnwk commented 4 years ago

Have you figured out how to do "Basic Authorization" with handle server? When I attempted to do basic authorization with username {prefix}/admin:{HS_SECKEY}, it keeps failing.

elizoller commented 4 years ago

This work repo got merged in to https://github.com/mjordan/persistent_identifiers The line relevant to your question is https://github.com/mjordan/persistent_identifiers/blob/master/modules/hdl/src/Minter/Hdl.php#L87 where it creates the auth header like 'auth' => [$handle_admin_index . '%3A' . $admin_handle, $password]