Skip to content

Add Session Token-Based Authentication to oci native authentication #527

@ateamsec

Description

@ateamsec
  1. Describe your new request in detail

Title: Add support for Session Token-Based Authentication in oci_tokens.py

Description:

It would be helpful to add support for Session Token-Based Authentication in the oci_tokens.py module to enable functionality with the security_token_file parameter through the config file or "Simple Authentication" mode.

References:

Expected Implementation:

The implementation should make use of the SecurityTokenSigner class to read the security token file and allow the SDK to authenticate based on the session token.

Sample Config File or Simple Authentication parameters:

[UPST]
fingerprint=09:fd:8b:17:82:7b:d6:f1:db:be:0a:22:d5:ca:9e:ea
key_file=~/.oci/dbtokens/private.pem
tenancy=ocid1.tenancy.oc1..aaaaaaaaoirerole
region=us-phoenix-1
security_token_file=~/.oci/dbtokens/upst_token.tok

This change will enable users to authenticate using session tokens enabling token exchange scenarios

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions