-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: add access token hub auth strategy #90
Conversation
@W-8066452@
@W-8066452@
Codecov Report
@@ Coverage Diff @@
## main #90 +/- ##
==========================================
- Coverage 77.57% 75.12% -2.45%
==========================================
Files 6 6
Lines 379 394 +15
Branches 73 76 +3
==========================================
+ Hits 294 296 +2
- Misses 65 76 +11
- Partials 20 22 +2
Continue to review full report at Codecov.
|
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.
The README.md and SAMPLES.md need to be updated as well, particularly the environment variables sections.
@@ -9,6 +9,8 @@ describe('hubAuth', () => { | |||
it('works with existing defaultdevhub if provided'); | |||
it('auths from authurl in env'); | |||
it('auths from authurl and sets as default'); | |||
it('auths from access token and sets as default'); | |||
it('auths from access token'); |
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.
Are we going to ignore these unit tests forever? Even having NUTs for this would be something. Right now there's nothing.
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.
Will add jsdoc
This reverts commit 296df6e.
This reverts commit 296df6e.
This reverts commit 296df6e.
* chore: add unit tests for hutbauth @W-9270862@ * chore: remove lint error * Revert "fix: add missed export (#91)" This reverts commit 86084c8. * Revert "feat: add access token hub auth strategy (#90)" This reverts commit 296df6e. * Revert "feat: add access token hub auth strategy (#90)" This reverts commit 296df6e. * chore: mock where I can for unit tests * chore: get rid of eslint errors * chore: update some mocking * chore: arrange tests in an order that works
@W-8066452@