Function google_cloud_auth::project

source ·
pub async fn project() -> Result<Project, Error>
Expand description

project() returns the project credentials or project info from metadata server.

Examples found in repository?
src/lib.rs (line 104)
103
104
105
106
pub async fn create_token_source(config: Config<'_>) -> Result<Box<dyn TokenSource>, error::Error> {
    let project = project().await?;
    create_token_source_from_project(&project, config).await
}