All Projects → hrvolapeter → gcp_auth

hrvolapeter / gcp_auth

Licence: other
Minimal authentication library for Google Cloud Platform (GCP)

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to gcp auth

auth
A GitHub Action for authenticating to Google Cloud.
Stars: ✭ 567 (+1250%)
Mutual labels:  gcp, google-cloud-platform
deploy-appengine
A GitHub Action that deploys source code to Google App Engine.
Stars: ✭ 184 (+338.1%)
Mutual labels:  gcp, google-cloud-platform
Gimme
Creating time bound IAM Conditions with ease and flair
Stars: ✭ 92 (+119.05%)
Mutual labels:  gcp, google-cloud-platform
Grpc Gke Nlb Tutorial
gRPC load-balancing on GKE using Envoy
Stars: ✭ 42 (+0%)
Mutual labels:  gcp, google-cloud-platform
Gcloud
GitHub Action for interacting with Google Cloud Platform (GCP)
Stars: ✭ 153 (+264.29%)
Mutual labels:  gcp, google-cloud-platform
Forseti Security
Forseti Security
Stars: ✭ 1,179 (+2707.14%)
Mutual labels:  gcp, google-cloud-platform
Awesome Gcp Certifications
Google Cloud Platform Certification resources.
Stars: ✭ 1,328 (+3061.9%)
Mutual labels:  gcp, google-cloud-platform
Cloud Functions Go
Unofficial Native Go Runtime for Google Cloud Functions
Stars: ✭ 427 (+916.67%)
Mutual labels:  gcp, google-cloud-platform
Gcp Data Engineer Exam
Study materials for the Google Cloud Professional Data Engineering Exam
Stars: ✭ 144 (+242.86%)
Mutual labels:  gcp, google-cloud-platform
Gcp Service Broker
Open Service Broker for Google Cloud Platform
Stars: ✭ 133 (+216.67%)
Mutual labels:  gcp, google-cloud-platform
Secrets Store Csi Driver Provider Gcp
Google Secret Manager provider for the Secret Store CSI Driver.
Stars: ✭ 40 (-4.76%)
Mutual labels:  gcp, google-cloud-platform
Goth
Elixir package for Oauth authentication via Google Cloud APIs
Stars: ✭ 191 (+354.76%)
Mutual labels:  gcp, google-cloud-platform
Firebase Gcp Examples
🔥 Firebase app architectures, languages, tools & some GCP things! React w Next.js, Svelte w Sapper, Cloud Functions, Cloud Run.
Stars: ✭ 470 (+1019.05%)
Mutual labels:  gcp, google-cloud-platform
Fog Google
Fog for Google Cloud Platform
Stars: ✭ 83 (+97.62%)
Mutual labels:  gcp, google-cloud-platform
Terracognita
Reads from existing Cloud Providers (reverse Terraform) and generates your infrastructure as code on Terraform configuration
Stars: ✭ 452 (+976.19%)
Mutual labels:  gcp, google-cloud-platform
Unity Solutions
Use Firebase tools to incorporate common features into your games!
Stars: ✭ 95 (+126.19%)
Mutual labels:  gcp, google-cloud-platform
gSlack
Get Slack notifications from Google Cloud Platform
Stars: ✭ 69 (+64.29%)
Mutual labels:  gcp, google-cloud-platform
All About Programming
Everything about programming!!
Stars: ✭ 314 (+647.62%)
Mutual labels:  gcp, google-cloud-platform
Gcpsketchnote
If you are looking to become a Google Cloud Engineer , then you are at the right place. GCPSketchnote is series where I share Google Cloud concepts in quick and easy to learn format.
Stars: ✭ 2,631 (+6164.29%)
Mutual labels:  gcp, google-cloud-platform
Googlecloudarchitectprofessional
Resources to prepare for Google Certified Cloud Architect Professional Exam - 2017
Stars: ✭ 177 (+321.43%)
Mutual labels:  gcp, google-cloud-platform

GCP Auth

Crates.io Documentation MIT licensed

GCP auth provides authentication using service accounts Google Cloud Platform (GCP)

GCP auth is a simple, minimal authentication library for Google Cloud Platform (GCP) providing authentication using service accounts. Once authenticated, the service account can be used to acquire bearer tokens for use in authenticating against GCP services.

The library supports the following methods of retrieving tokens:

  1. Reading custom service account credentials from the path pointed to by the GOOGLE_APPLICATION_CREDENTIALS environment variable. Alternatively, custom service account credentials can be read from a JSON file or string.
  2. Retrieving a token from the gcloud CLI tool, if it is available on the PATH.
  3. Use the default service account by retrieving a token from the metadata server.
  4. Look for credentials in .config/gcloud/application_default_credentials.json; if found, use these credentials to request refresh tokens.

For more detailed information and examples, see the docs.

This crate does not currently support Windows.

Simple usage

The default way to use this library is to get instantiate an AuthenticationManager. It will find the appropriate authentication method and use it to retrieve tokens.

use gcp_auth::AuthenticationManager;

let authentication_manager = AuthenticationManager::new().await?;
let scopes = &["https://www.googleapis.com/auth/cloud-platform"];
let token = authentication_manager.get_token(scopes).await?;

License

Parts of the implementation have been sourced from yup-oauth2.

Licensed under MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].