Skip to content

Commit 7229549

Browse files
committed
feat: user-specific routes
Signed-off-by: Wouter Termont <wouter.termont@ugent.be>
1 parent a577f01 commit 7229549

7 files changed

Lines changed: 11 additions & 11 deletions

File tree

demo/data/ruben/profile/card$.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
ruben: a foaf:Person ;
1313
foaf:name "Ruben Verborgh"@en, "Ruben Verborgh"@nl;
1414
rdfs:label "Ruben Verborgh"@en, "Ruben Verborgh"@nl;
15-
solid:umaServer "http://localhost:4000/uma/" ;
15+
solid:umaServer "http://localhost:4000/ruben/" ;
1616
solid:oidcIssuer <http://localhost:3000/> ;
1717
solid:viewIndex <#index> .
1818

packages/uma/config/routes/discovery.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@type": "ConfigRequestHandler",
1818
"baseUrl": { "@id": "urn:uma:variables:baseUrl" }
1919
},
20-
"path": "/uma/.well-known/uma2-configuration"
20+
"path": "/:user/.well-known/uma2-configuration"
2121
}
2222
]
23-
}
23+
}

packages/uma/config/routes/introspection.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"jwtTokenFactory": { "@id": "urn:uma:default:TokenFactory" }
2222
}
2323
},
24-
"path": "/uma/introspect"
24+
"path": "/:user/introspect"
2525
}
2626
]
27-
}
27+
}

packages/uma/config/routes/keys.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@type": "JwksRequestHandler",
2929
"generator": { "@id": "urn:uma:default:JwkGenerator" }
3030
},
31-
"path": "/uma/keys"
31+
"path": "/:user/keys"
3232
}
3333
]
3434
}

packages/uma/config/routes/resources.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
}
2020
],
2121
"handler": { "@id": "urn:uma:default:ResourceRegistrationHandler" },
22-
"path": "/uma/resources"
22+
"path": "/:user/resources"
2323
},
2424
{
2525
"@id": "urn:uma:default:ResourceRegistrationOpsRoute",
@@ -32,7 +32,7 @@
3232
}
3333
],
3434
"handler": { "@id": "urn:uma:default:ResourceRegistrationHandler" },
35-
"path": "/uma/resources/:id"
35+
"path": "/:user/resources/:id"
3636
}
3737
]
3838
}

packages/uma/config/routes/tickets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"ticketStore": { "@id": "urn:uma:default:TicketStore" }
2222
}
2323
},
24-
"path": "/uma/ticket"
24+
"path": "/:user/ticket"
2525
}
2626
]
2727
}

packages/uma/config/routes/tokens.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"negotiator": { "@id": "urn:uma:default:Negotiator" }
2121
}
2222
},
23-
"path": "/uma/token"
23+
"path": "/:user/token"
2424
}
2525
]
26-
}
26+
}

0 commit comments

Comments
 (0)