Skip to content

Commit

Permalink
refactor: Removed openid-federation-* dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoe Maas committed Nov 25, 2024
1 parent 123ee3e commit 4e483a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 79 deletions.
4 changes: 3 additions & 1 deletion packages/client/lib/MetadataClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,12 @@ export class MetadataClient {
/**
* Retrieve all metadata from an issuer
* @param issuer The issuer URL
* @param credIssuerMetadata
* @param opts
*/
public static async retrieveAllMetadata(
issuer: string,
credIssuerMetadata?: CredentialIssuerMetadataV1_0_11 | CredentialIssuerMetadataV1_0_13 | (IssuerMetadataV1_0_08 & Partial<AuthorizationServerMetadata>),
opts?: { errorOnNotFound: boolean },
): Promise<EndpointMetadataResultV1_0_13 | EndpointMetadataResultV1_0_11> {
let token_endpoint: string | undefined;
Expand All @@ -74,7 +76,7 @@ export class MetadataClient {
let authorization_servers: string[] | undefined = [issuer];
let authorization_server: string | undefined = undefined;
const oid4vciResponse = await MetadataClient.retrieveOpenID4VCIServerMetadata(issuer, { errorOnNotFound: false }); // We will handle errors later, given we will also try other metadata locations
let credentialIssuerMetadata = oid4vciResponse?.successBody;
let credentialIssuerMetadata = credIssuerMetadata ?? oid4vciResponse?.successBody;
if (credentialIssuerMetadata) {
debug(`Issuer ${issuer} OID4VCI well-known server metadata\r\n${JSON.stringify(credentialIssuerMetadata)}`);
credential_endpoint = credentialIssuerMetadata.credential_endpoint;
Expand Down
78 changes: 0 additions & 78 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4e483a7

Please sign in to comment.