oracle / oracle/oci-cli

security token refresh not extending the validity time - token created with --no-browser

Open
#970 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
669
Forks
236
Avg merge
1m
Merged PRs (30d)
4

Description

I am trying to refresh a OCI CLI session token. I see the token is refreshed but the validity is not getting changed.

 % oci -v
3.63.0
 % oci session validate --config-file vault/.oci/iadpreprod/config --profile TOKEN_PROFILE --auth security_token --local
Session is valid until 2025-07-26 14:41:19
 % oci session refresh --config-file vault/.oci/iadpreprod/config --profile TOKEN_PROFILE                
Attempting to refresh token from https://auth.us-ashburn-1.oraclecloud.com/v1/authentication/refresh
Successfully refreshed token
 % 
 % oci session validate --config-file vault/.oci/iadpreprod/config --profile TOKEN_PROFILE --auth security_token --local
Session is valid until 2025-07-26 14:41:19

Contributor guide

Open the contributing guide

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.

Research direction

Start by reproducing the issue with oci session refresh and then oci session validate --auth security_token --local, using the --no-browser session described in the title. Trace the session refresh and validation entry points to determine why the reported validity remains unchanged; done means a successful refresh extends the validity time shown by validation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
authentication, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.