Skip to content

Commit

Permalink
feat: Fetch callback for more places
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Lanser <[email protected]>
  • Loading branch information
Tommylans committed Dec 5, 2024
1 parent 4ff2d95 commit a189983
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { ErrorCode } from '../error/ErrorCode'
import { OpenIdFederationError } from '../error/OpenIdFederationError'
import type { VerifyCallback } from '../utils'
import type { FetchCallback, VerifyCallback } from '../utils'
import type { EntityConfigurationClaims } from './entityConfigurationClaims'
import { fetchEntityConfiguration } from './fetchEntityConfiguration'

export type FetchEntityConfigurationChainOptions = {
leafEntityId: string
trustAnchorEntityIds: Array<string>
verifyJwtCallback: VerifyCallback
fetchCallback?: FetchCallback
}

/**
Expand Down Expand Up @@ -35,6 +36,7 @@ export const fetchEntityConfigurationChains = async (
// Fetch the entity configuration of the current entity id
const configuration = await fetchEntityConfiguration({
verifyJwtCallback: options.verifyJwtCallback,
fetchCallback: options.fetchCallback,
entityId: currentEntityId,
})

Expand Down

0 comments on commit a189983

Please sign in to comment.