-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor!: client authentication is now an explicit argument to authe…
…nticated functions
- Loading branch information
Showing
71 changed files
with
818 additions
and
818 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Function: ClientSecretBasic() | ||
|
||
[💗 Help the project](https://github.com/sponsors/panva) | ||
|
||
Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by [becoming a sponsor](https://github.com/sponsors/panva). | ||
|
||
*** | ||
|
||
▸ **ClientSecretBasic**(`clientSecret`): [`ClientAuthenticationImplementation`](../type-aliases/ClientAuthenticationImplementation.md) | ||
|
||
**`client_secret_basic`** uses the HTTP `Basic` authentication scheme to send `client_id` and | ||
`client_secret` in an `Authorization` HTTP Header. | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| ------ | ------ | ------ | | ||
| `clientSecret` | `string` | | | ||
|
||
## Returns | ||
|
||
[`ClientAuthenticationImplementation`](../type-aliases/ClientAuthenticationImplementation.md) | ||
|
||
## See | ||
|
||
- [OAuth Token Endpoint Authentication Methods](https://www.iana.org/assignments/oauth-parameters/oauth-parameters.xhtml#token-endpoint-auth-method) | ||
- [RFC 6749 - The OAuth 2.0 Authorization Framework](https://www.rfc-editor.org/rfc/rfc6749.html#section-2.3) | ||
- [OpenID Connect Core 1.0](https://openid.net/specs/openid-connect-core-1_0.html#ClientAuthentication) |
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,28 @@ | ||
# Function: ClientSecretPost() | ||
|
||
[💗 Help the project](https://github.com/sponsors/panva) | ||
|
||
Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by [becoming a sponsor](https://github.com/sponsors/panva). | ||
|
||
*** | ||
|
||
▸ **ClientSecretPost**(`clientSecret`): [`ClientAuthenticationImplementation`](../type-aliases/ClientAuthenticationImplementation.md) | ||
|
||
**`client_secret_post`** uses the HTTP request body to send `client_id` and `client_secret` as | ||
`application/x-www-form-urlencoded` body parameters | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| ------ | ------ | ------ | | ||
| `clientSecret` | `string` | | | ||
|
||
## Returns | ||
|
||
[`ClientAuthenticationImplementation`](../type-aliases/ClientAuthenticationImplementation.md) | ||
|
||
## See | ||
|
||
- [OAuth Token Endpoint Authentication Methods](https://www.iana.org/assignments/oauth-parameters/oauth-parameters.xhtml#token-endpoint-auth-method) | ||
- [RFC 6749 - The OAuth 2.0 Authorization Framework](https://www.rfc-editor.org/rfc/rfc6749.html#section-2.3) | ||
- [OpenID Connect Core 1.0](https://openid.net/specs/openid-connect-core-1_0.html#ClientAuthentication) |
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,21 @@ | ||
# Function: None() | ||
|
||
[💗 Help the project](https://github.com/sponsors/panva) | ||
|
||
Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by [becoming a sponsor](https://github.com/sponsors/panva). | ||
|
||
*** | ||
|
||
▸ **None**(): [`ClientAuthenticationImplementation`](../type-aliases/ClientAuthenticationImplementation.md) | ||
|
||
**`none`** (public client) uses the HTTP request body to send only `client_id` as | ||
`application/x-www-form-urlencoded` body parameter. | ||
|
||
## Returns | ||
|
||
[`ClientAuthenticationImplementation`](../type-aliases/ClientAuthenticationImplementation.md) | ||
|
||
## See | ||
|
||
- [OAuth Token Endpoint Authentication Methods](https://www.iana.org/assignments/oauth-parameters/oauth-parameters.xhtml#token-endpoint-auth-method) | ||
- [OpenID Connect Core 1.0](https://openid.net/specs/openid-connect-core-1_0.html#ClientAuthentication) |
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,27 @@ | ||
# Function: PrivateKeyJwt() | ||
|
||
[💗 Help the project](https://github.com/sponsors/panva) | ||
|
||
Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by [becoming a sponsor](https://github.com/sponsors/panva). | ||
|
||
*** | ||
|
||
▸ **PrivateKeyJwt**(`clientPrivateKey`): [`ClientAuthenticationImplementation`](../type-aliases/ClientAuthenticationImplementation.md) | ||
|
||
**`private_key_jwt`** uses the HTTP request body to send `client_id`, `client_assertion_type`, | ||
and `client_assertion` as `application/x-www-form-urlencoded` body parameters. | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| ------ | ------ | ------ | | ||
| `clientPrivateKey` | [`CryptoKey`](https://developer.mozilla.org/docs/Web/API/CryptoKey) \| [`PrivateKey`](../interfaces/PrivateKey.md) | | | ||
|
||
## Returns | ||
|
||
[`ClientAuthenticationImplementation`](../type-aliases/ClientAuthenticationImplementation.md) | ||
|
||
## See | ||
|
||
- [OAuth Token Endpoint Authentication Methods](https://www.iana.org/assignments/oauth-parameters/oauth-parameters.xhtml#token-endpoint-auth-method) | ||
- [OpenID Connect Core 1.0](https://openid.net/specs/openid-connect-core-1_0.html#ClientAuthentication) |
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,22 @@ | ||
# Function: SelfSignedTlsClientAuth() | ||
|
||
[💗 Help the project](https://github.com/sponsors/panva) | ||
|
||
Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by [becoming a sponsor](https://github.com/sponsors/panva). | ||
|
||
*** | ||
|
||
▸ **SelfSignedTlsClientAuth**(): [`ClientAuthenticationImplementation`](../type-aliases/ClientAuthenticationImplementation.md) | ||
|
||
**`self_signed_tls_client_auth`** uses the HTTP request body to send only `client_id` as | ||
`application/x-www-form-urlencoded` body parameter and the mTLS key and certificate is configured | ||
through [customFetch](../variables/customFetch.md). | ||
|
||
## Returns | ||
|
||
[`ClientAuthenticationImplementation`](../type-aliases/ClientAuthenticationImplementation.md) | ||
|
||
## See | ||
|
||
- [OAuth Token Endpoint Authentication Methods](https://www.iana.org/assignments/oauth-parameters/oauth-parameters.xhtml#token-endpoint-auth-method) | ||
- [RFC 8705 - OAuth 2.0 Mutual-TLS Client Authentication (Self-Signed Certificate Mutual-TLS Method)](https://www.rfc-editor.org/rfc/rfc8705.html#name-self-signed-certificate-mut) |
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,22 @@ | ||
# Function: TlsClientAuth() | ||
|
||
[💗 Help the project](https://github.com/sponsors/panva) | ||
|
||
Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by [becoming a sponsor](https://github.com/sponsors/panva). | ||
|
||
*** | ||
|
||
▸ **TlsClientAuth**(): [`ClientAuthenticationImplementation`](../type-aliases/ClientAuthenticationImplementation.md) | ||
|
||
**`tls_client_auth`** uses the HTTP request body to send only `client_id` as | ||
`application/x-www-form-urlencoded` body parameter and the mTLS key and certificate is configured | ||
through [customFetch](../variables/customFetch.md). | ||
|
||
## Returns | ||
|
||
[`ClientAuthenticationImplementation`](../type-aliases/ClientAuthenticationImplementation.md) | ||
|
||
## See | ||
|
||
- [OAuth Token Endpoint Authentication Methods](https://www.iana.org/assignments/oauth-parameters/oauth-parameters.xhtml#token-endpoint-auth-method) | ||
- [RFC 8705 - OAuth 2.0 Mutual-TLS Client Authentication (PKI Mutual-TLS Method)](https://www.rfc-editor.org/rfc/rfc8705.html#name-pki-mutual-tls-method) |
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
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.