-
Notifications
You must be signed in to change notification settings - Fork 8
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
Upgrade Strategy to MyMLH v4 API #14
Conversation
- Update API endpoints to use v4 - Add new granular scope system - Remove support for Implicit Grant flow - Update documentation with breaking changes - Add migration guide for v2.0.0 - Update examples with new scope format
- Add activesupport for deep_symbolize_keys functionality - Update test data structure to match v4 API response format - Fix hash key transformation in tests to handle nested structures - Add more comprehensive test data coverage
- Remove extra spacing in comments - Use verified doubles in specs - Improve test structure to avoid subject stubbing - Use instance_variable_set for access token in tests
- Update API endpoints to use v4 - Add new granular scope system - Update token exchange to use basic auth - Remove Implicit Grant flow support - Update documentation with breaking changes - Add migration guide for v2.0.0 - Update examples with new scope format Breaking Changes: - API endpoint changed to api.mlh.com - New scope format required - Implicit Grant flow removed - Version bumped to 2.0.0
- Remove vendor directory from git tracking - Add vendor/ to .gitignore to prevent future tracking - Keep dependencies managed through Bundler only
- Added expired? method to token mock - Added API response mock for user data - Added proper Rack app context for OmniAuth strategy - Achieved 100% test coverage
- Remove deprecated test_files from gemspec - Fix argument alignment in spec file - Configure new RuboCop cops - Update RSpec test structure
Working MyMLH v3 example: https://gist.github.com/jonmarkgo/1881ab9da877de26c4b1a267350690d8/revisions#diff-f965f92b425fb2f75d38b491b2625fe21b8af20b7666217546bce8a42b198ea4 Working MyMLH v4 example: https://gist.github.com/jonmarkgo/1881ab9da877de26c4b1a267350690d8/revisions#diff-9ad32be17347f0cdcc9a38ac9af49d418554f067f3aac5885cf9bddfcee0556f Note that for the v4 example, I have a tmp branch of this PR that changes the URL to beta.my.mlh.io rather than my.mlh.io |
Update to MyMLH API v4
This PR updates the omniauth-mlh gem to use the MyMLH API v4 endpoints and introduces several breaking changes that warrant a version bump to 2.0.0.
Changes
Breaking Changes
New API Endpoints
Updated Scope System
Authentication Flow
Test Suite Improvements
activesupport
as a development dependency to supportdeep_symbolize_keys
functionalityTesting
Link to Devin runs: