Skip to content

Commit

Permalink
fix: Disable strong client_id check
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieubosquet committed Jan 15, 2021
1 parent abeec07 commit ffa9ad4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@solid/identity-token-verifier",
"version": "0.4.3",
"version": "0.5.0",
"description": "Verifies Solid access tokens via their WebID claim, and thus asserts ownership of WebIDs.",
"license": "MIT",
"keywords": [
Expand Down
10 changes: 1 addition & 9 deletions src/guards/AccessTokenGuard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,8 @@ export function isAccessTokenHeader(
export function isAccessTokenPayload(
x: unknown
): asserts x is AccessTokenPayload {
asserts.areObjectPropertiesOf(x, [
"aud",
"client_id",
"exp",
"iat",
"iss",
"webid",
]);
asserts.areObjectPropertiesOf(x, ["aud", "exp", "iat", "iss", "webid"]);
asserts.isLiteral(x.aud, "solid" as const);
asserts.isString(x.client_id);
asserts.isNumber(x.exp);
asserts.isNumber(x.iat);
asserts.isString(x.iss);
Expand Down
2 changes: 1 addition & 1 deletion src/types/AccessToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface AccessTokenHeader {

export interface AccessTokenPayload {
aud: "solid";
client_id: string;
client_id?: string;
cnf?: { jkt: string };
exp: number;
iat: number;
Expand Down

0 comments on commit ffa9ad4

Please sign in to comment.