Download the PHP package iamxml/fusio-adapter-gcp-zero-trust without Composer

On this page you can find all versions of the php package iamxml/fusio-adapter-gcp-zero-trust. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package fusio-adapter-gcp-zero-trust

fusio/adapter-gcp-zero-trust

Fusio adapter for calling Cloud Run services with automatic Google-signed ID token injection.

Provides a Connection type and a matching Action type that work together:

Install

Setup

Step 1: Create a Connection

Backend > API > Connections > Create

Select type: Google Cloud Run Zero Trust HTTP

Field Description
Base URL Target service URL, e.g. https://my-service-abc123.run.app
Audience Cloud Run audience for the ID token. Usually the same as the base URL. Must be the .run.app URL (custom domains are not supported as audience).
Header Mode Authorization or X-Serverless-Authorization (see below)
Timeout HTTP timeout in seconds (default: 30)
Enable Logging Log outbound requests with method, path, status code, and duration. Never logs tokens or bodies.

Step 2: Create an Action

Backend > API > Actions > Create

Select type: Google Cloud Run HTTP

Field Description
Connection Select the connection created in Step 1 (dropdown of all configured connections)
Method AUTO (forwards the inbound HTTP method), or a fixed method: GET, POST, PUT, PATCH, DELETE
Path Relative path on the target service, e.g. /api/v1/users. Supports {{param}} placeholders resolved from URI fragments.
Forward Headers Comma-separated list of inbound headers to forward, e.g. X-Request-Id, Accept-Language

Step 3: Bind the Action to an Operation

Backend > API > Operations

Point a route to the action. The action will:

  1. Load the configured connection (which returns a Guzzle client with ID token middleware)
  2. Forward the HTTP method, path, query parameters, and request body to the downstream service
  3. Return the downstream response (status code, headers, and body) back through Fusio

Header modes

How authentication works

The adapter uses Google Application Default Credentials to fetch ID tokens:

Tokens are cached in-process for ~55 minutes (tokens are valid for 1 hour) using google/auth's FetchAuthTokenCache with MemoryCacheItemPool.

Example: Dockerfile for a custom Fusio image

Requirements

Development

License

Apache-2.0


All versions of fusio-adapter-gcp-zero-trust with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
fusio/engine Version ^6.0
google/auth Version ^1.50
guzzlehttp/guzzle Version ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package iamxml/fusio-adapter-gcp-zero-trust contains the following files

Loading the files please wait ...