-
Notifications
You must be signed in to change notification settings - Fork 635
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* app password lex & auth chnages * scrypt things * implemented app password refresh tokens * db tidy & migration * revocation + bugfixin * tests, listing passwords & cleanup * Update packages/pds/src/db/scrypt.ts Co-authored-by: devin ivy <[email protected]> * Update packages/pds/src/db/scrypt.ts Co-authored-by: devin ivy <[email protected]> * pr feedback --------- Co-authored-by: devin ivy <[email protected]>
- Loading branch information
Showing
34 changed files
with
1,186 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "com.atproto.server.createAppPassword", | ||
"defs": { | ||
"main": { | ||
"type": "procedure", | ||
"description": "Create an app-specific password.", | ||
"input": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"required": ["name"], | ||
"properties": { | ||
"name": {"type": "string"} | ||
} | ||
} | ||
}, | ||
"output": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "ref", | ||
"ref": "#appPassword" | ||
} | ||
}, | ||
"errors": [ | ||
{"name": "AccountTakedown"} | ||
] | ||
}, | ||
"appPassword": { | ||
"type": "object", | ||
"required": ["name", "password", "createdAt"], | ||
"properties": { | ||
"name": {"type": "string"}, | ||
"password": {"type": "string"}, | ||
"createdAt": {"type": "string", "format": "datetime"} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "com.atproto.server.listAppPasswords", | ||
"defs": { | ||
"main": { | ||
"type": "query", | ||
"description": "List all app-specific passwords.", | ||
"output": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"required": ["passwords"], | ||
"properties": { | ||
"passwords": { | ||
"type": "array", | ||
"items": {"type": "ref", "ref": "#appPassword"} | ||
} | ||
} | ||
} | ||
}, | ||
"errors": [ | ||
{"name": "AccountTakedown"} | ||
] | ||
}, | ||
"appPassword": { | ||
"type": "object", | ||
"required": ["name", "createdAt"], | ||
"properties": { | ||
"name": {"type": "string"}, | ||
"createdAt": {"type": "string", "format": "datetime"} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "com.atproto.server.revokeAppPassword", | ||
"defs": { | ||
"main": { | ||
"type": "procedure", | ||
"description": "Revoke an app-specific password by name.", | ||
"input": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"required": ["name"], | ||
"properties": { | ||
"name": {"type": "string"} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.