-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move openid-client exports to vci-issuer level instead of vci-…
…issuer-rest level. Still exposing them from there as well
- Loading branch information
Showing
5 changed files
with
50 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,4 @@ | ||
export * from './OID4VCIServer' | ||
export * from './oid4vci-api-functions' | ||
export * from './expressUtils' | ||
|
||
/** | ||
* Copied from openid-client | ||
*/ | ||
export type ResponseType = 'code' | 'id_token' | 'code id_token' | 'none' | string | ||
export type ClientAuthMethod = | ||
| 'client_secret_basic' | ||
| 'client_secret_post' | ||
| 'client_secret_jwt' | ||
| 'private_key_jwt' | ||
| 'tls_client_auth' | ||
| 'self_signed_tls_client_auth' | ||
| 'none' | ||
export interface ClientMetadata { | ||
// important | ||
client_id: string | ||
id_token_signed_response_alg?: string | ||
token_endpoint_auth_method?: ClientAuthMethod | ||
client_secret?: string | ||
redirect_uris?: string[] | ||
response_types?: ResponseType[] | ||
post_logout_redirect_uris?: string[] | ||
default_max_age?: number | ||
require_auth_time?: boolean | ||
tls_client_certificate_bound_access_tokens?: boolean | ||
request_object_signing_alg?: string | ||
|
||
// less important | ||
id_token_encrypted_response_alg?: string | ||
id_token_encrypted_response_enc?: string | ||
introspection_endpoint_auth_method?: ClientAuthMethod | ||
introspection_endpoint_auth_signing_alg?: string | ||
request_object_encryption_alg?: string | ||
request_object_encryption_enc?: string | ||
revocation_endpoint_auth_method?: ClientAuthMethod | ||
revocation_endpoint_auth_signing_alg?: string | ||
token_endpoint_auth_signing_alg?: string | ||
userinfo_encrypted_response_alg?: string | ||
userinfo_encrypted_response_enc?: string | ||
userinfo_signed_response_alg?: string | ||
authorization_encrypted_response_alg?: string | ||
authorization_encrypted_response_enc?: string | ||
authorization_signed_response_alg?: string | ||
|
||
[key: string]: unknown | ||
} | ||
export * from '@sphereon/oid4vci-issuer/dist/types/index' |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
export * from './openid-client' | ||
|
||
import { | ||
AssertedUniformCredentialOffer, | ||
CNonceState, | ||
|
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,45 @@ | ||
/** | ||
* Copied from openid-client | ||
*/ | ||
export type ResponseType = 'code' | 'id_token' | 'code id_token' | 'none' | string | ||
export type ClientAuthMethod = | ||
| 'client_secret_basic' | ||
| 'client_secret_post' | ||
| 'client_secret_jwt' | ||
| 'private_key_jwt' | ||
| 'tls_client_auth' | ||
| 'self_signed_tls_client_auth' | ||
| 'none' | ||
export interface ClientMetadata { | ||
// important | ||
client_id: string | ||
id_token_signed_response_alg?: string | ||
token_endpoint_auth_method?: ClientAuthMethod | ||
client_secret?: string | ||
redirect_uris?: string[] | ||
response_types?: ResponseType[] | ||
post_logout_redirect_uris?: string[] | ||
default_max_age?: number | ||
require_auth_time?: boolean | ||
tls_client_certificate_bound_access_tokens?: boolean | ||
request_object_signing_alg?: string | ||
|
||
// less important | ||
id_token_encrypted_response_alg?: string | ||
id_token_encrypted_response_enc?: string | ||
introspection_endpoint_auth_method?: ClientAuthMethod | ||
introspection_endpoint_auth_signing_alg?: string | ||
request_object_encryption_alg?: string | ||
request_object_encryption_enc?: string | ||
revocation_endpoint_auth_method?: ClientAuthMethod | ||
revocation_endpoint_auth_signing_alg?: string | ||
token_endpoint_auth_signing_alg?: string | ||
userinfo_encrypted_response_alg?: string | ||
userinfo_encrypted_response_enc?: string | ||
userinfo_signed_response_alg?: string | ||
authorization_encrypted_response_alg?: string | ||
authorization_encrypted_response_enc?: string | ||
authorization_signed_response_alg?: string | ||
|
||
[key: string]: unknown | ||
} |