Skip to content

Commit e2b0eb2

Browse files
authored
Merge pull request #2 from itk-dev/feature/documentation
Updated documentation
2 parents 7c17061 + 9fdb478 commit e2b0eb2

File tree

5 files changed

+51
-7
lines changed

5 files changed

+51
-7
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#### Link to ticket
2+
3+
Please add a link to the ticket being addressed by this change.
4+
5+
#### Description
6+
7+
Please include a short description of the suggested change and the reasoning behind the approach you have chosen.
8+
9+
#### Screenshot of the result
10+
11+
If your change affects the user interface you should include a screenshot of the result with the pull request.
12+
13+
#### Checklist
14+
15+
- [ ] My code is covered by test cases.
16+
- [ ] My code passes our test (all our tests).
17+
- [ ] My code passes our static analysis suite.
18+
- [ ] My code passes our continuous integration process.
19+
20+
If your code does not pass all the requirements on the checklist you have to add a comment explaining why this change
21+
should be exempt from the list.
22+
23+
#### Additional comments or questions
24+
25+
If you have any further comments or questions for the reviewer please add them here.

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
* [PR-2](https://github.com/OS2web/os2web_key/pull/2)
11+
Updated documentation
12+
* [PR-1](https://github.com/OS2web/os2web_key/pull/1)
13+
Added OS2Web key module
14+
1015
[Unreleased]: https://github.com/rimi-itk/os2web_key

README.md

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,33 @@
22

33
Key types and providers for OS2Web built on the [Key module](https://www.drupal.org/project/key).
44

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+
512
## Installation
613

714
``` shell
815
composer require os2web/os2web_key
916
drush pm:install os2web_key
1017
```
1118

19+
Keys are managed on `/admin/config/system/keys`.
20+
1221
## Key types
1322

1423
### Certificate
1524

1625
This key type handles [PKCS 12](https://en.wikipedia.org/wiki/PKCS_12) or [Privacy-Enhanced Mail
1726
(PEM)](https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail) certificate with an optional password (passphrase).
1827

28+
Managing the key:
29+
30+
!["Certificate" key type form](docs/assets/key-type-certificate.png)
31+
1932
Use in a form:
2033

2134
``` php
@@ -56,6 +69,10 @@ $key = $repository->getKey('my_key');
5669

5770
### OpenID Connect (OIDC)
5871

72+
Managing the key:
73+
74+
!["OpenID Connect (OIDC)" key type form](docs/assets/key-type-oidc.png)
75+
5976
Example use in a form:
6077

6178
``` php
@@ -87,18 +104,15 @@ $key = $repository->getKey('openid_connect_ad');
87104
] = $helper->getOidcValues($key);
88105
```
89106

90-
See [the Key Developer Guide](https://www.drupal.org/docs/contributed-modules/key/developer-guide) for details and more
91-
examples.
92-
93107
## Providers
94108

95-
### `@todo` Azure Key Vault
109+
### Azure Key Vault
96110

97-
<https://azure.microsoft.com/en-us/products/key-vault>
111+
`@todo` <https://azure.microsoft.com/en-us/products/key-vault>
98112

99-
### `@todo` Infisical
113+
### Infisical
100114

101-
<https://infisical.com/>
115+
`@todo` <https://infisical.com/>
102116

103117
## Coding standards
104118

docs/assets/key-type-certificate.png

282 KB
Loading

docs/assets/key-type-oidc.png

219 KB
Loading

0 commit comments

Comments
 (0)