jaredhanson / jaredhanson/oauth2orize

Custom data with authcode / token

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

Description

I have had an OAUTH server running using oath2orize for some time and use it with many different services.

I now have a need for a user to select a particular option when they perform the Allow through the Dialog. For example, when the perform allow they will select a particular option, 1, 2, 3 or 4.

I want to store this with the authcode in a seperate field as well as store it when the authcode exchange occurs.

Problem is that when I do the authsave in oauth2orize.grant.code() I do not have access to the req.query values passed in.

Any suggestions would be most appreciated.

Contributor guide

Open the contributing guide

Research direction

Start at oauth2orize.grant.code() and the authsave callback, focusing on how req.query values are exposed during the authorization dialog and authcode exchange. Clarify the intended way to persist the selected option with the authcode and document or implement a complete flow that preserves it through token exchange.

Written by the indexing model from the issue text.

Assessment

Tech stack
express, javascript, node.js
Domain
authorization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.