Wp Graphql Headless Login Versions Save

A WordPress plugin that provides Headless login and authentication for WPGraphQL, supporting traditional passwords, OAuth2/OpenID Connect, JWT, and more.

0.0.6

1 year ago

This release adds support for a special Site Token provider, which allows users to authenticate with a custom Header and a external resource identity. It also adds support for setting Access Control headers, and removes the loginWithPassword mutation in favor of a Password provider that can be used with login mutation.

What's Changed

  • feat!: Remove loginWithPassword mutation in favor of Password provider.
  • feat: Add Site Token provider.
  • feat: Add support for setting Access Control headers.
  • fix: check OAuth2 state against current $_SESSION.
  • fix: remove codecept_debug() call in plugin src.
  • dev!: Refactor settings page frontend components and app logic.
  • dev!: Refactor ProviderConfig methods.
  • dev!: Make oauthResponse input optional.
  • dev! Remove graphql_login_before_password_authenticate in favor of the existing graphql_login_before_authenticate filter.
  • dev!: Remove graphql_login_after_successful_password_login in favor of the existing graphql_login_after_successful_login filter.
  • dev: Add the graphql_login_access_control_settings filter.
  • dev: Refactor settings registration and screen for better extendability.
  • chore: Update NPM dependencies.
  • chore: Update Composer dependencies.
  • docs: Update docs to reflect new settings and providers.
  • ci: Don't set WP_AUTO_UPDATE_CORE and AUTOMATIC_UPDATED_DISABLED when spinning up a Docker instance.
  • tests: Rename provider mutation test files.
  • tests: Backfill tests for Settings registry.
  • tests: Backfill tests for OAuth2 Generic provider.

Full Changelog: https://github.com/AxeWP/wp-graphql-headless-login/compare/0.0.5...0.0.6

0.0.5

1 year ago

What's Changed

  • dev: relocate Strauss dependencies to vendor-prefixed.
  • dev: wrap activation and deactivation global functions in function_exists() checks.
  • chore: update Strauss and Composer deps.
  • chore: update NPM dependencies.

Full Changelog: https://github.com/AxeWP/wp-graphql-headless-login/compare/0.0.4...0.0.5

0.0.4

1 year ago

This release adds support for setting a WP Authentication Cookie on successful login, as well as compatibility with WPGraphQL for WooCommerce. It also fixes a handful of bugs, and backfills/refactors CI tests.

Breaking Changes

  • fix!: Use the provider slug to generate LoginProviderEnum names. This is a breaking change, as the name for Generic - OAuth2 is now GENERIC_OAUTH2.

Added

  • feat: Add setting to disable the loginWithPassword mutation.
  • feat: Add settings to set a WP authentication cookie on successful login.
  • feat: Add support for WPGraphQL for WooCommerce.

Fixed

  • fix: Don't overwrite existing Access-Control-Expose-Headers when adding X-WPGraphQL-Login-Refresh-Token.
  • fix: Check for truthy values when using graphql_get_login_setting().
  • fix: Return 401 for user ID of 0 when validating authentication tokens.
  • fix: use WPGraphQL::debug() instead of constant when adding headers.

Changed

  • dev: Trigger wp_login action on successful login.

Housekeeping

  • chore: (PHPCS) Fix minimum_supported_wp_version.
  • chore: Update Composer dependencies.
  • chore: Update NPM dependencies.
  • ci: Update workflow actions to latest versions.
  • ci: Fix XDebug install in Docker for PHP 7.x.
  • ci: Add INCLUDE_EXTENSIONS env variable for running 3rd-party plugin tests.
  • tests: Refactor helper methods.
  • tests: refactor functional Cept tests to Cest format.
  • tests: Add test for NONE provider enum.
  • tests: Add test for Utils::is_current_user() with empty user supplied.
  • tests: Backfill case for TypeRegistry::get_registered_types().
  • tests: Add acceptance test for login with WC enabled.

Full Changelog: https://github.com/AxeWP/wp-graphql-headless-login/compare/0.0.3...0.0.4

0.0.3

1 year ago

This release adds support for Instagram and LinkedIn OAuth 2.0 providers, and fixes various typos and styling issues.

Breaking Changes

  • Schema: linkExistingUsers field was moved from the LoginOptions interface, to the individual {Provider}LoginOptions objects that implement that setting.

Added

  • feat: Add Instagram provider support.
  • feat: Add LinkedIn provider support.

Changed

  • dev!: Move loginOptions.linkExistingUsers to {Provider}LoginOptions.

Fixed

  • fix: Remove trailing . from title and action strings.

Housekeeping

  • dev: Update Strauss and Composer deps.
  • docs: Fix various typos and styling issues. Thanks @jasonbahl !
  • ci: Upgrade workflow actions to latest versions.

New Contributors

Full Changelog: https://github.com/AxeWP/wp-graphql-headless-login/compare/0.0.2...0.0.3

0.0.2

1 year ago

Added

  • feat: Improve requirement checks for WPGraphQL (required: v1.12.0) and WPGraphQL-JWT-Authentication(conflicted) plugins.

Changed

  • dev: Allow core function overloading in wp-graphql-headless-login.php.

Fixed

  • fix: Correctly map Github first and last name to user data.

Housekeeping

  • chore: Update doc-block header in src/Type/WPObject/LoginOptions.php
  • docs: Fix broken Readme.md links.
  • tests: add tests for Github and Google provider mutations.

Full Changelog: https://github.com/AxeWP/wp-graphql-headless-login/compare/0.0.1...0.0.2

0.0.1

1 year ago

Initial public release of Headless Login for WPGraphQL.

Previous commit history can be found in the old private repo