|  | 
| 2 | 2 | 
 | 
| 3 | 3 | Key types and providers for OS2Web built on the [Key module](https://www.drupal.org/project/key). | 
| 4 | 4 | 
 | 
|  | 5 | +The OS2Web key module provides two _key types_, [Certificate](#certificate) and [OpenID Connect | 
|  | 6 | +(OIDC)](#openid-connect-oidc). Two _key providers_, [Azure Key Vault](#azure-key-vault) and [Infisical](#infisical), are | 
|  | 7 | +planned, but not yet implemented. | 
|  | 8 | + | 
|  | 9 | +See [the Key Developer Guide](https://www.drupal.org/docs/contributed-modules/key/developer-guide) for details in how to | 
|  | 10 | +use keys in Drupal. | 
|  | 11 | + | 
| 5 | 12 | ## Installation | 
| 6 | 13 | 
 | 
| 7 | 14 | ``` shell | 
| 8 | 15 | composer require os2web/os2web_key | 
| 9 | 16 | drush pm:install os2web_key | 
| 10 | 17 | ``` | 
| 11 | 18 | 
 | 
|  | 19 | +Keys are managed on `/admin/config/system/keys`. | 
|  | 20 | + | 
| 12 | 21 | ## Key types | 
| 13 | 22 | 
 | 
| 14 | 23 | ### Certificate | 
| 15 | 24 | 
 | 
| 16 | 25 | This key type handles [PKCS 12](https://en.wikipedia.org/wiki/PKCS_12) or [Privacy-Enhanced Mail | 
| 17 | 26 | (PEM)](https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail) certificate with an optional password (passphrase). | 
| 18 | 27 | 
 | 
|  | 28 | +Managing the key: | 
|  | 29 | + | 
|  | 30 | + | 
|  | 31 | + | 
| 19 | 32 | Use in a form: | 
| 20 | 33 | 
 | 
| 21 | 34 | ``` php | 
| @@ -56,6 +69,10 @@ $key = $repository->getKey('my_key'); | 
| 56 | 69 | 
 | 
| 57 | 70 | ### OpenID Connect (OIDC) | 
| 58 | 71 | 
 | 
|  | 72 | +Managing the key: | 
|  | 73 | + | 
|  | 74 | + | 
|  | 75 | + | 
| 59 | 76 | Example use in a form: | 
| 60 | 77 | 
 | 
| 61 | 78 | ``` php | 
| @@ -87,18 +104,15 @@ $key = $repository->getKey('openid_connect_ad'); | 
| 87 | 104 | ] = $helper->getOidcValues($key); | 
| 88 | 105 | ``` | 
| 89 | 106 | 
 | 
| 90 |  | -See [the Key Developer Guide](https://www.drupal.org/docs/contributed-modules/key/developer-guide) for details and more | 
| 91 |  | -examples. | 
| 92 |  | - | 
| 93 | 107 | ## Providers | 
| 94 | 108 | 
 | 
| 95 |  | -### `@todo` Azure Key Vault | 
|  | 109 | +### Azure Key Vault | 
| 96 | 110 | 
 | 
| 97 |  | -<https://azure.microsoft.com/en-us/products/key-vault> | 
|  | 111 | +`@todo` <https://azure.microsoft.com/en-us/products/key-vault> | 
| 98 | 112 | 
 | 
| 99 |  | -### `@todo` Infisical | 
|  | 113 | +### Infisical | 
| 100 | 114 | 
 | 
| 101 |  | -<https://infisical.com/> | 
|  | 115 | +`@todo` <https://infisical.com/> | 
| 102 | 116 | 
 | 
| 103 | 117 | ## Coding standards | 
| 104 | 118 | 
 | 
|  | 
0 commit comments