Skip to content

feat(jans-auth-server): add refresh token lifetime to Token Endpoint response #11400

@yuriyz

Description

@yuriyz

Description

Standard Token Endpoint response has only access token lifetime. It does not have refresh token lifetime.

We need to introduce new AS configuration property which will force AS to return refresh token lifetime in token reponse. JSON key "refresh_token_expires_in".

Example

{
  "access_token": "...",
  "refresh_token": "...",
  "scope": "openid user_name offline_access profile email",
  "id_token": "...",
  "token_type": "Bearer",
  "expires_in": 299,
  "refresh_token_expires_in": 1399                   <-- new non-standard field
}

Test cases and code coverage

  • Write unit test to cover added/changed code
  • Update integration tests to cover added/changed code
  • documentation

Metadata

Metadata

Assignees

Labels

comp-jans-auth-serverComponent affected by issue or PRkind-featureIssue or PR is a new feature request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions