WordPress plugin intelligence profile

Verify ID Tokens | Firebase

A plugin to work with Firebase tokens.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 5.1
Current version1.0.0
WordPress coverageTested up to WordPress 5.1
Minimum stackWP 4.7.0 · PHP —
Directory statusactive
Last directory update25 Mar 20197y ago
Active installationsNewAdoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Verify ID Tokens | Firebase version 1.0.0 as active, updated 7y ago and tested up to WordPress 5.1.

Overview

About this plugin

If your Firebase client app communicates with a custom backend server, you might need to identify the currently signed-in user on that server.

This plugin work with Google Firebase tokens. You can use it to verify ID Tokens.

Namespace and Endpoints

When the plugin is activated, a new namespace is added

/verify-id-tokens/v1/

Also, a new endpoint is added to this namespace

/verify-id-tokens/v1/token/validate | POST

PHP HTTP Authorization Header enable

Most of the shared hosting has disabled the HTTP Authorization Header by default.

htaccess file adding the follow

*) - [E=HTTP_AUTHORIZATION:%1]

WPENGINE

htaccess file adding the follow

*)" HTTP_AUTHORIZATION=$1

Configurate the Firebase projectId

php file and add a new constant called BENGAL_STUDIO_VERIFY_ID_TOKENS_FIREBASE_PROJECT_ID

define('BENGAL_STUDIO_VERIFY_ID_TOKENS_FIREBASE_PROJECT_ID', 'projectId');

Configurate CORs

The Verify ID Tokens | Firebase plugin has the option to activate CORs response headers.

php file and add a new constant called BENGAL_STUDIO_VERIFY_ID_TOKENS_ENABLE_CORS

define('BENGAL_STUDIO_VERIFY_ID_TOKENS_ENABLE_CORS', true);

Retrieve ID tokens on clients

To retrieve the ID token from the client, make sure the user is signed in and then get the ID token from the signed-in user:

then(function(idToken) { // Send token to your backend via HTTPS //... catch(function(error) { // Handle error });

Verify ID Tokens

verify-id-tokens/v1/token/validate

This is a simple helper endpoint to validate a token; you only will need to make a POST request sending the Authorization header.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • firebase auth
  • json web tokens
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 5.1

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 5.1.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to5.1
Minimum requirementsWordPress 4.7.0 · PHP not listed
Update activity25 Mar 20197y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.