feat: Remove base64 encoding from storages

This commit is contained in:
Joachim Van Herwegen 2023-10-10 14:55:10 +02:00
parent 16378ec470
commit e1c5189cb8
6 changed files with 19 additions and 37 deletions

View File

@ -7,12 +7,9 @@
"@type": "KeyValueChannelStorage", "@type": "KeyValueChannelStorage",
"locker": { "@id": "urn:solid-server:default:ResourceLocker" }, "locker": { "@id": "urn:solid-server:default:ResourceLocker" },
"storage": { "storage": {
"@type": "Base64EncodingStorage", "@type": "ContainerPathStorage",
"source": { "relativePath": "/notifications/",
"@type": "ContainerPathStorage", "source": { "@id": "urn:solid-server:default:KeyValueStorage" }
"relativePath": "/notifications/",
"source": { "@id": "urn:solid-server:default:KeyValueStorage" }
}
} }
} }
] ]

View File

@ -11,12 +11,9 @@
}, },
{ {
"@id": "urn:solid-server:default:KeyStorage", "@id": "urn:solid-server:default:KeyStorage",
"@type": "Base64EncodingStorage", "@type": "ContainerPathStorage",
"source": { "relativePath": "/idp/keys/",
"@type": "ContainerPathStorage", "source": { "@id": "urn:solid-server:default:KeyValueStorage" }
"relativePath": "/idp/keys/",
"source": { "@id": "urn:solid-server:default:KeyValueStorage" }
}
} }
] ]
} }

View File

@ -39,12 +39,9 @@
"@id": "urn:solid-server:default:CookieStorage", "@id": "urn:solid-server:default:CookieStorage",
"@type": "WrappedExpiringStorage", "@type": "WrappedExpiringStorage",
"source": { "source": {
"@type": "Base64EncodingStorage", "@type": "ContainerPathStorage",
"source": { "relativePath": "/accounts/cookies/",
"@type": "ContainerPathStorage", "source": { "@id": "urn:solid-server:default:KeyValueStorage" }
"relativePath": "/accounts/cookies/",
"source": { "@id": "urn:solid-server:default:KeyValueStorage" }
}
} }
} }
}, },

View File

@ -30,12 +30,9 @@
"@id": "urn:solid-server:default:ForgotPasswordStorage", "@id": "urn:solid-server:default:ForgotPasswordStorage",
"@type": "WrappedExpiringStorage", "@type": "WrappedExpiringStorage",
"source": { "source": {
"@type": "Base64EncodingStorage", "@type": "ContainerPathStorage",
"source": { "relativePath": "/accounts/forgot-password/",
"@type": "ContainerPathStorage", "source": { "@id": "urn:solid-server:default:KeyValueStorage" }
"relativePath": "/accounts/forgot-password/",
"source": { "@id": "urn:solid-server:default:KeyValueStorage" }
}
} }
} }
} }

View File

@ -13,12 +13,9 @@
"@id": "urn:solid-server:default:ExpiringTokenStorage", "@id": "urn:solid-server:default:ExpiringTokenStorage",
"@type": "WrappedExpiringStorage", "@type": "WrappedExpiringStorage",
"source": { "source": {
"@type": "Base64EncodingStorage", "@type": "ContainerPathStorage",
"source": { "relativePath": "/idp/tokens/",
"@type": "ContainerPathStorage", "source": { "@id": "urn:solid-server:default:KeyValueStorage" }
"relativePath": "/idp/tokens/",
"source": { "@id": "urn:solid-server:default:KeyValueStorage" }
}
} }
} }
] ]

View File

@ -2,7 +2,7 @@
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^6.0.0/components/context.jsonld", "@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^6.0.0/components/context.jsonld",
"@graph": [ "@graph": [
{ {
"comment": "Used for internal storage by the locker.", "comment": "Used for internal storage by the locker. Always hashing the keys to prevent issues.",
"@id": "urn:solid-server:default:LockStorage", "@id": "urn:solid-server:default:LockStorage",
"@type": "HashEncodingStorage", "@type": "HashEncodingStorage",
"source": { "source": {
@ -14,12 +14,9 @@
{ {
"comment": "Storage used by setup components.", "comment": "Storage used by setup components.",
"@id": "urn:solid-server:default:SetupStorage", "@id": "urn:solid-server:default:SetupStorage",
"@type": "Base64EncodingStorage", "@type": "ContainerPathStorage",
"source": { "relativePath": "/setup/",
"@type": "ContainerPathStorage", "source": { "@id": "urn:solid-server:default:KeyValueStorage" }
"relativePath": "/setup/",
"source": { "@id": "urn:solid-server:default:KeyValueStorage" }
}
} }
] ]
} }