snow auth oidc read-token¶
Reads OIDC token based on the specified type. Use ‘auto’ to auto-detect available providers.
Syntax¶
snow auth oidc read-token
--type <_type>
--format <format>
--verbose
--debug
--silent
--enhanced-exit-codes
Arguments¶
None
Options¶
--type [auto|github]Type of OIDC provider to use. Default: auto.
--format [TABLE|JSON|JSON_EXT|CSV]Specifies the output format. Default: TABLE.
--verbose, -vDisplays log entries for log levels
infoand higher. Default: False.--debugDisplays log entries for log levels
debugand higher; debug logs contain additional information. Default: False.--silentTurns off intermediate output to console. Default: False.
--enhanced-exit-codesDifferentiate exit error codes based on failure type. Default: False.
--helpDisplays the help text for this command.
Usage notes¶
The snow auth read-token command displays the OIDC token, which can be used for authentication in Snowflake operations. This command is primarily for retrieving the authentication token and must run within the supported CI/CD runner.
Examples¶
Display the OIDC token in the current CI/CD environment:
snow auth oidc read-token --type github