lsupp/oauth2-yandex

Yandex provider for league/oauth2-client

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/lsupp/oauth2-yandex

1.0.0 2025-07-25 20:33 UTC

This package is auto-updated.

Last update: 2025-12-25 23:00:42 UTC


README

This package provides Yandex.com integration for OAuth2 Client by the League.

Installation

composer require lsupp/oauth2-yandex

Add to config/packages/knpu_oauth2_client.yaml

yandex_main:
  type: generic
  provider_class: Lsupp\OAuth2\Client\Provider\Yandex
  # add and set these environment variables in your .env files
  client_id: '%env(OAUTH_YANDEX_CLIENT_ID)%'
  client_secret: '%env(OAUTH_YANDEX_CLIENT_SECRET)%'
  # a route name you'll create
  redirect_route: connect_yandex_check
  redirect_params: {}
  # whether to check OAuth2 "state": defaults to true
  # use_state: true