Skip to content

Refresh Token not Returned with authorization_code grant flow. (PKCE) #624

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rayman245 opened this issue Feb 12, 2022 · 1 comment
Closed
Assignees
Labels
status: duplicate A duplicate of another issue

Comments

@rayman245
Copy link

Describe the bug
The refresh token isn't being returned. I tried to follow this guide (https://www.appsdeveloperblog.com/new-oauth2-authorization-server/)

Although I was not able to find in token settings a similar function like below
image

I could not find any documentation for this project anywhere, I know it worked in 0.0.3, but unsure if the behavior has changed now?

To Reproduce

  1. Create a client with following settings using spring-authorization-server version 0.2.2
    RegisteredClient registeredClient = RegisteredClient.withId(UUID.randomUUID().toString()) .clientId("glassdev-postman-client-pkce") .clientAuthenticationMethod(ClientAuthenticationMethod.NONE) .authorizationGrantType(AuthorizationGrantType.AUTHORIZATION_CODE) .authorizationGrantType(AuthorizationGrantType.REFRESH_TOKEN) .redirectUri("https://oauth.pstmn.io/v1/callback") .scope(OidcScopes.OPENID) .build();

  2. Complete authorization grant flow and request access token, should receive payload with access token and id token, but missing refresh token.

Expected behavior
Should return below:

  1. access token
  2. id token
  3. refresh token
@rayman245 rayman245 added the type: bug A general bug label Feb 12, 2022
@rayman245
Copy link
Author

Issue already highlighted here gh-297

@rayman245 rayman245 changed the title Refresh Token not Returned with authorization_code grant flow. Refresh Token not Returned with authorization_code grant flow. (PKCE) Feb 13, 2022
@jgrandja jgrandja self-assigned this Feb 14, 2022
@jgrandja jgrandja added status: duplicate A duplicate of another issue and removed type: bug A general bug labels Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

2 participants