Skip to content

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

@Jayachandra

Description

@Jayachandra

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions