CF UAA Does Not Store or Use External IDP's Refresh Token

Open
#3,450 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
java

Research direction

The issue names no files, tests, or entry points. Start by locating the external identity-provider token handling and the UAA refresh-token flow, then determine how external access and refresh tokens should be retained and used after the UAA token expires; done means long-lived sessions can renew without reauthentication when the external refresh token remains valid.

Written by the indexing model from the issue text.

Description

Description:
When integrating with an external Identity Provider (IDP), CF UAA does not store the access token or refresh token issued by the external IDP. This leads to a problem when UAA’s own refresh token expires.

For example, if UAA's refresh token expires in 2 hours but the external IDP's refresh token is valid for 24 hours (or any longer duration depending on its configuration), UAA is unable to obtain a new access token from the external IDP after its own token expires. This is because UAA does not retain the external IDP's refresh token, which would still be valid.

Impact:
This limitation breaks long-lived sessions and forces users to reauthenticate even though the external IDP's refresh token is still valid.

Dominant language
Java
Stars
1.6k
Forks
847
Avg merge
2d 1h
Merged PRs (30d)
48

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cloudfoundry/uaa

All issues in cloudfoundry/uaa

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.