Skip to content
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

Start cleaning up github auth routes #1813

Merged
merged 3 commits into from
Aug 2, 2018
Merged

Start cleaning up github auth routes #1813

merged 3 commits into from
Aug 2, 2018

Conversation

paulmelnikow
Copy link
Member

  • Move github token debug route to separate module
  • Use crypto.timingSafeEqual
  • Rename getTokenDebugInfo -> serializeDebugInfo

This picks some more of the work from #1205.

- Move github token debug route to separate module
- Use crypto.timingSafeEqual
- Rename getTokenDebugInfo -> serializeDebugInfo

This picks some more of the work from #1205.
@paulmelnikow paulmelnikow added the core Server, BaseService, GitHub auth, Shared helpers label Jul 27, 2018
//
// e.g.
// curl -u ':very-very-secret' 'https://example.com/$github-auth/tokens'
server.ajax.on('github-auth/tokens', (json, end, ask) => {
Copy link
Member Author

Choose a reason for hiding this comment

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

This endpoint doesn't have a test. We could either add one or test this manually.

@shields-ci
Copy link

shields-ci commented Jul 27, 2018

Warnings
⚠️

This PR modified the server but none of the service tests. That's okay so long as it's refactoring existing code.

⚠️

This PR modified helper functions in lib/ but not accompanying tests. That's okay so long as it's refactoring existing code.

⚠️

This PR modified services/github/auth/admin.js but not services/github/auth/admin.tester.js. That's okay so long as it's refactoring existing code.

Messages
📖

✨ Thanks for your contribution to Shields, @paulmelnikow!

Generated by 🚫 dangerJS

@paulmelnikow paulmelnikow merged commit 2ff71da into badges:master Aug 2, 2018
@shields-deployment
Copy link

This pull request was merged to master branch. Now this change is waiting for deployment.
Deploys usually happen every few weeks. After deployment changes are copied to gh-pages branch.

This badge displays deployment status:

@paulmelnikow paulmelnikow deleted the github-admin-api branch August 2, 2018 01:58
paulmelnikow added a commit that referenced this pull request Aug 11, 2018
Fix regressions in the github admin and token acceptor endpoints, introduced in #1813.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Server, BaseService, GitHub auth, Shared helpers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants