mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00

* feat: abstract Credentials type for Authorizer * feat: abstract Credentials type in CredentialsExtractor & PermissionReader * chore: typegraphical corrections in documentation Co-authored-by: Ted Thibodeau Jr <tthibodeau@openlinksw.com> * fix: remove accidental .js extension * feat: also check for undefined credentials when deciding 401/404 * docs: corrections to code documentation Co-authored-by: Ted Thibodeau Jr <tthibodeau@openlinksw.com> * fix: revert abstraction & index signature to Credentials * chhore: fix linter issues --------- Co-authored-by: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
10 lines
218 B
TypeScript
10 lines
218 B
TypeScript
/**
|
|
* Credentials identifying an entity accessing or owning data.
|
|
*/
|
|
export type Credentials = {
|
|
agent?: { webId: string };
|
|
client?: { clientId: string };
|
|
issuer?: { url: string };
|
|
[key: string]: unknown;
|
|
};
|