jaredhanson / jaredhanson/passport-amazon
Handling additional Scope Data
- Dominant language
- JavaScript
- Stars
- 37
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
For newer Amazon APIs authenticated by Login with Amazon, such as Alexa, an additional scope_data parameter may be needed. This can be achieved by adding a few lines to the Strategy.js file to override the default behavior in passport-oauth2.
`OAuth2Strategy.prototype.authorizationParams = function(options){
if(options.authorizationParams){
return options.authorizationParams;
} else {
return {};
}
}`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in Strategy.js and read how the strategy currently delegates authorization parameters to passport-oauth2. Check the requested authorizationParams behavior against newer Amazon APIs that require additional scope_data. Done means the strategy can accept and pass the additional authorization parameters without changing existing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- authentication
- Issue type
- Feature
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100