feat: Update IDP parameters to latest Solid-OIDC version

This commit is contained in:
Joachim Van Herwegen 2021-11-02 08:54:11 +01:00
parent b0208bf469
commit fc60b5c161
3 changed files with 12 additions and 12 deletions

View File

@ -2,7 +2,7 @@
## v3.0.0 ## v3.0.0
### New features ### New features
... - The Identity Provider now uses the `webid` scope as required for Solid-OIDC.
### Configuration changes ### Configuration changes
You might need to make changes to your v2 configuration if you use a custom config. You might need to make changes to your v2 configuration if you use a custom config.
@ -13,6 +13,8 @@ The following changes pertain to the imports in the default configs:
The following changes are relevant for v2 custom configs that replaced certain features. The following changes are relevant for v2 custom configs that replaced certain features.
- Conversion has been simplified so most converters are part of the conversion chain: - Conversion has been simplified so most converters are part of the conversion chain:
- `/util/representation-conversion/default.json` - `/util/representation-conversion/default.json`
- The IDP settings have changed to support the latest Solid-OIDC draft.
- `/identity/handler/provider-factory/identity.json`
### Interface changes ### Interface changes
These changes are relevant if you wrote custom modules for the server that depend on existing interfaces. These changes are relevant if you wrote custom modules for the server that depend on existing interfaces.

View File

@ -3,9 +3,9 @@
"@graph": [ "@graph": [
{ {
"comment": [ "comment": [
"Sets all the relevant oidc parameters.", "Sets all the relevant Solid-OIDC parameters.",
"webid claim is in openid scope until an official scope has been decided: https://github.com/solid/authentication-panel/issues/86" "dPoP is draft-01 since that is the latest version v6 of the OIDC library supports."
], ],
"@id": "urn:solid-server:default:IdentityProviderFactory", "@id": "urn:solid-server:default:IdentityProviderFactory",
"@type": "IdentityProviderFactory", "@type": "IdentityProviderFactory",
"args_adapterFactory": { "@id": "urn:solid-server:default:IdpAdapterFactory" }, "args_adapterFactory": { "@id": "urn:solid-server:default:IdpAdapterFactory" },
@ -16,15 +16,13 @@
"args_responseWriter": { "@id": "urn:solid-server:default:ResponseWriter" }, "args_responseWriter": { "@id": "urn:solid-server:default:ResponseWriter" },
"config": { "config": {
"claims": { "claims": {
"openid": [ "webid", "client_id" ] "openid": [ "client_id" ],
"webid": [ "webid" ]
}, },
"cookies": { "cookies": {
"long": { "signed": true, "maxAge": 86400000 }, "long": { "signed": true, "maxAge": 86400000 },
"short": { "signed": true } "short": { "signed": true }
}, },
"discovery": {
"solid_oidc_supported": "https://solidproject.org/TR/solid-oidc"
},
"features": { "features": {
"claimsParameter": { "enabled": true }, "claimsParameter": { "enabled": true },
"devInteractions": { "enabled": false }, "devInteractions": { "enabled": false },
@ -36,8 +34,8 @@
"formats": { "formats": {
"AccessToken": "jwt" "AccessToken": "jwt"
}, },
"scopes": [ "openid", "profile", "offline_access" ], "scopes": [ "openid", "profile", "offline_access", "webid" ],
"subjectTypes": [ "public", "pairwise" ], "subjectTypes": [ "public" ],
"ttl": { "ttl": {
"AccessToken": 3600, "AccessToken": 3600,
"AuthorizationCode": 600, "AuthorizationCode": 600,

View File

@ -373,8 +373,8 @@ describe('A Solid server with IDP', (): void => {
const jsonBody = await res.json(); const jsonBody = await res.json();
expect(res.status).toBe(200); expect(res.status).toBe(200);
// https://solid.github.io/authentication-panel/solid-oidc/#discovery // https://solid.github.io/solid-oidc/#discovery
expect(jsonBody.solid_oidc_supported).toEqual('https://solidproject.org/TR/solid-oidc'); expect(jsonBody.scopes_supported).toContain('webid');
}); });
it('should return correct error output.', async(): Promise<void> => { it('should return correct error output.', async(): Promise<void> => {