Specify your setup
- Operating System:
Mac OS
- Node version:
v23.3.0
- npm version:
11.0.0
- version of @node-oauth/oauth2-server
5.2.0
- which OAuth2 workflow:
Grant Flow: "authorization_code"
- at which workflow step does the error occur:
Authorizatio flow
Describe the bug
Issue: After saving the authorization code, the response does not redirect with the redirect_uri and state parameter. Instead, the Promise hangs indefinitely.
Expected Behavior: The server should redirect to the provided redirect_uri with the state parameter after successfully saving the authorization code.
Observed Behavior: The process stalls, and the redirect does not occur.
Return data from authorize()
{
authorizationCode: '6ac10a0b8a4f40f326646946308af63438bcb303c1ae5b021e26c265e183bcbc',
client: {
clientId: '12345',
clientSecret: 'secret',
grants: [ 'authorization_code' ],
redirectUris: [ 'http://localhost:3003/secret' ]
},
user: { name: 'Rishi', _id: 1 }
}
Response Object:
Response {
status: 302,
body: {},
headers: {
location: 'http://localhost:3002/secret?code=f8db24809f8779d051f1d8a2c3a73e06a1689a81e6921550a6094ef170389bdb&state=ssotest'
},
}
To Reproduce
Steps to reproduce the behavior:
Npm install with mentioned version, create a sample app with authorization grand type, the redirect does not happen
Alternatively, please add a link to a GitHub repo
that reproduces the error/s.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Specify your setup
Mac OS
v23.3.0
11.0.0
5.2.0
Grant Flow: "authorization_code"
Authorizatio flow
Describe the bug
Issue: After saving the authorization code, the response does not redirect with the redirect_uri and state parameter. Instead, the Promise hangs indefinitely.
Expected Behavior: The server should redirect to the provided redirect_uri with the state parameter after successfully saving the authorization code.
Observed Behavior: The process stalls, and the redirect does not occur.
Return data from authorize()
Response Object:
To Reproduce
Steps to reproduce the behavior:
Npm install with mentioned version, create a sample app with authorization grand type, the redirect does not happen
Alternatively, please add a link to a GitHub repo
that reproduces the error/s.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.