jaredhanson / jaredhanson/oauth2orize

access req.user in server.authorization() validation

Open
#201 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.5k
Forks
472
PR merge metrics
No merged PRs in 30d

Description

I am trying the following..
server.authorization( function(clientID, redirectURI, done) {
// access req.user here
}
I want to check to make sure the clientID is really accessible by the user, but looking at the code, there doesn't seem to be a way. Or am I doing something really wrong?

Contributor guide

Open the contributing guide

Research direction

Start at the server.authorization() entry point and trace how its validation callback is invoked. Check the repository’s request-handling conventions to determine how the current user could be available for clientID validation. Done means the callback behavior supports checking the client against the user, with coverage for the authorization flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
express, javascript, node.js
Domain
api, authorization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.