-
Notifications
You must be signed in to change notification settings - Fork 20
Auth credential exchange registry implementation #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
2fdff27 to
a044637
Compare
kalenkevich
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
| * @throws CredentialExchangeError: If credential exchange fails. | ||
| */ | ||
|
|
||
| exchange( |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed the exchange method to use named parameters.
| expect(registry.getExchanger(AuthCredentialTypes.API_KEY)).toBeUndefined(); | ||
| }); | ||
|
|
||
| it('should register a single exchanger', () => { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the API_KEY type in the test case to keep the test simple.
- Converted the exchange method parameters in base credential exchanger to named parameters - Removed the API_KEY registry on empty registry test
c6e9c9e to
5973b44
Compare
Implementation