Skip to content

Conversation

@hariprasath2603
Copy link
Collaborator

Implementation

  • BaseCredentialExchanger interface with exchange method signature
  • CredentialExchangeError
  • CredentialExchangerRegistry with two methods to register and get exchanger

@hariprasath2603 hariprasath2603 changed the title Auth credential register exchange implementation Auth credential exchange registry implementation Nov 21, 2025
@hariprasath2603 hariprasath2603 marked this pull request as ready for review November 21, 2025 23:54
@hariprasath2603 hariprasath2603 force-pushed the hariprasath2603/auth-credential-excahnger branch from 2fdff27 to a044637 Compare November 22, 2025 00:34
Copy link
Collaborator

@kalenkevich kalenkevich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@kalenkevich kalenkevich added the ready to pull Ready to pull for final review. label Nov 24, 2025
* @throws CredentialExchangeError: If credential exchange fails.
*/

exchange(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's use named Parameters

expect(registry.getExchanger(AuthCredentialTypes.API_KEY)).toBeUndefined();
});

it('should register a single exchanger', () => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: test case can be simplified to focus on one type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to pull Ready to pull for final review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants