Skip to content

Commit

Permalink
Updated modules with keys
Browse files Browse the repository at this point in the history
  • Loading branch information
rimi-itk committed May 17, 2024
1 parent 2bb4977 commit 0d4dfbd
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 34 deletions.
10 changes: 7 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
"type": "vcs",
"url": "https://github.com/itk-dev/os2forms"
},
{
"type": "vcs",
"url": "https://github.com/itk-dev/os2forms_get_organized"
},
{
"type": "vcs",
"url": "https://github.com/itk-dev/os2web_datalookup"
Expand Down Expand Up @@ -81,14 +85,14 @@
"itk-dev/os2forms_cpr_lookup": "^1.8",
"itk-dev/os2forms_cvr_lookup": "^1.4",
"itk-dev/os2forms_failed_jobs": "^1.3",
"itk-dev/os2forms_nemlogin_openid_connect": "^2.0",
"itk-dev/os2forms_nemlogin_openid_connect": "dev-feature/os2web_key",
"itk-dev/os2forms_user_field_lookup": "^1.0",
"itk-dev/serviceplatformen": "dev-feature/guzzle6-adapter as 1.5",
"itk-dev/web_accessibility_statement": "^1.0",
"os2forms/os2forms": "dev-feature/os2web_key as 3.14.0",
"os2forms/os2forms_fasit": "^1.0",
"os2forms/os2forms_fasit": "dev-feature/os2web_key",
"os2forms/os2forms_forloeb_profile": "^1.12",
"os2forms/os2forms_get_organized": "^1.1.5",
"os2forms/os2forms_get_organized": "dev-feature/os2web_key",
"os2forms/os2forms_organisation": "^2.0",
"os2forms/os2forms_rest_api": "^2.0",
"os2forms/os2forms_sync": "^1.1.2",
Expand Down
84 changes: 57 additions & 27 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

72 changes: 68 additions & 4 deletions docs/Keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
* <http://selvbetjening.local.itkdev.dk/os2forms_nemlogin_openid_connect/authenticate/{id}>
* <http://selvbetjening.local.itkdev.dk/admin/os2forms_nemlogin_openid_connect/settings>

* FBS?!

## Not our modules

* <http://selvbetjening.local.itkdev.dk/admin/config/people/openid-connect/generic/edit>
Expand Down Expand Up @@ -67,7 +65,16 @@ putenv('KEY_DIGITAL_POST_CERTIFICATE_PASSWORD=digital_post');

---

<https://www.drupal.org/project/key>
## Development

| Pull request | Internally approved | Externally approved | Release version |
|-----------------------------------------------------------------------|---------------------|---------------------|-----------------|
| <https://github.com/OS2Forms/os2forms/pull/101> | yes | | 4.0.0 |
| <https://github.com/OS2Forms/os2forms_get_organized/pull/14> | yes | | |
| <https://github.com/OS2web/os2web_datalookup/pull/13> | yes | | |
| <https://github.com/itk-dev/os2forms_fasit/pull/7> | yes | | |
| <https://github.com/itk-dev/os2forms_nemlogin_openid_connect/pull/20> | yes | | |


```mermaid
flowchart LR
Expand All @@ -81,6 +88,63 @@ flowchart LR
os2web_key -->|require| key
os2forms_nemlogin_openid_connect[<a href='https://github.com/itk-dev/os2forms_nemlogin_openid_connect'>itk-dev/os2forms_nemlogin_openid_connect</a>: <a href='https://github.com/itk-dev/os2forms_nemlogin_openid_connect/pull/19'>#19</a>] -->|require| os2web_key
os2forms_nemlogin_openid_connect[<a href='https://github.com/itk-dev/os2forms_nemlogin_openid_connect'>itk-dev/os2forms_nemlogin_openid_connect</a>: <a href='https://github.com/itk-dev/os2forms_nemlogin_openid_connect/pull/20'>#20</a>] -->|require| os2web_key
%% os2forms_nemlogin_openid_connect -->|require| os2web_nemlogin[os2web/os2web_nemlogin]
```

### Test

<https://os2form.dmzwebstgitk03.itkdev.dk/da/admin/config/system/keys>

#### Certificate and passphrase

* <https://os2form.dmzwebstgitk03.itkdev.dk/admin/config/system/os2web-datalookup/datafordeler-cvr>
* <https://os2form.dmzwebstgitk03.itkdev.dk/admin/config/system/os2web-datalookup/serviceplatformen-cpr-extended>
* What about all the UUIDs?

```shell
drush os2forms-selvbetjening:look-up:cpr 2611740000
```

* <https://os2form.dmzwebstgitk03.itkdev.dk/admin/os2forms_digital_post/settings>

```shell
drush os2forms-digital-post:test:send 2611740000
```

(implicitly tests CPR lookup)

* <https://os2form.dmzwebstgitk03.itkdev.dk/admin/os2forms_fasit/settings>
* Is `Fasit API tenant` a secret?

```shell
drush os2forms-fasit:test:api
```

#### Username and passphrase

* <https://os2form.dmzwebstgitk03.itkdev.dk/admin/os2forms_get_organized/settings>

```shell
drush os2forms-get-organized:test:api
```

#### OpenID Connect (OIDC)

* <https://os2form.dmzwebstgitk03.itkdev.dk/admin/config/system/os2web-nemlogin/openid-connect-nemlogin>
* <https://os2form.dmzwebstgitk03.itkdev.dk/os2forms_nemlogin_openid_connect/authenticate/{id}>
* <https://os2form.dmzwebstgitk03.itkdev.dk/admin/os2forms_nemlogin_openid_connect/settings>

#### Not our modules

* <https://os2form.dmzwebstgitk03.itkdev.dk/admin/config/people/openid-connect/generic/edit>
* We can use the key module to inject `Client ID` and `Client secret`, cf.

---



```shell
drush config:get openid_connect.client.generic
drush config:get openid_connect.client.generic --include-overridden
```

0 comments on commit 0d4dfbd

Please sign in to comment.