-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds the ability to send application request earlier in the handshake, after authenticating the server (but before the server has authenticated us). --------- Co-authored-by: achingbrain <[email protected]>
- Loading branch information
1 parent
5bfda98
commit ca69dc4
Showing
8 changed files
with
172 additions
and
76 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
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
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,19 @@ | ||
export class MissingAuthHeaderError extends Error { | ||
static name = 'MissingAuthHeaderError' | ||
name = 'MissingAuthHeaderError' | ||
} | ||
|
||
export class InvalidSignatureError extends Error { | ||
static name = 'InvalidSignatureError' | ||
name = 'InvalidSignatureError' | ||
} | ||
|
||
export class InvalidPeerError extends Error { | ||
static name = 'InvalidPeerError' | ||
name = 'InvalidPeerError' | ||
} | ||
|
||
export class BadResponseError extends Error { | ||
static name = 'BadResponseError' | ||
name = 'BadResponseError' | ||
} |
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
export { PeerIDAuthScheme, HTTPPeerIDAuthProto } from './common.js' | ||
export { ClientAuth } from './client.js' | ||
export { ServerAuth } from './server.js' | ||
|
||
export type { AuthenticatedFetchOptions, AuthenticateServerOptions, TokenInfo } from './client.js' | ||
export type { ServerAuthOps, HttpHandler } from './server.js' |
Oops, something went wrong.