Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConfigAutoStore

Class to manage automatic storage of properties in team config.

Hierarchy

  • ConfigAutoStore

Index

Methods

Static Private _fetchTokenForSessCfg

Static Private _findActiveProfile

Static Private _findAuthHandlerForProfile

Static _storeSessCfgProps

Static Private fetchTokenForSessCfg

  • Retrieves token value that will be auto-stored into session config.

    Parameters

    • params: IHandlerParameters

      CLI handler parameters object

    • sessCfg: {}

      Session config with credentials for basic or cert auth

      • [key: string]: any
    • profilePath: string

      JSON path of profile containing tokenType

    Returns Promise<boolean>

    True if auth handler was found and token was fetched

Static findActiveProfile

  • findActiveProfile(params: IHandlerParameters, profileProps: string[]): [string, string] | undefined
  • Finds the profile where auto-store properties should be saved.

    Parameters

    • params: IHandlerParameters

      CLI handler parameters object

    • profileProps: string[]

      List of properties required in the profile schema

    Returns [string, string] | undefined

    Tuple containing profile type and name, or undefined if no profile was found

Static findAuthHandlerForProfile

Static storeSessCfgProps

Generated using TypeDoc