Skip to content
This repository has been archived by the owner on Feb 25, 2019. It is now read-only.

Repair broken this reference in authorizedScope() #269

Merged
merged 2 commits into from
Oct 18, 2015

Conversation

christiansmith
Copy link
Member

A recent commit changed User.prototype.authorizedScope to look up unrestricted scopes from the data store. This change wrapped a this._id in a new function, causing the references to that property to be undefined. This caused user role lookups to always result in an empty array, and therefore authorization requests including restricted scopes would issue tokens omitting those scopes. This PR fixes the problem.

@christiansmith
Copy link
Member Author

@EternalDeiwos – want to do the honors of merging this one since you discovered the problem?

@EternalDeiwos
Copy link
Member

Would be happy to.

EternalDeiwos added a commit that referenced this pull request Oct 18, 2015
…zed-scope

Repair broken `this` reference in authorizedScope()
@EternalDeiwos EternalDeiwos merged commit ab4ad29 into master Oct 18, 2015
@adalinesimonian adalinesimonian deleted the christiansmith-fix-authorized-scope branch October 18, 2015 17:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants