lsupp/oauth2-vkontakte

Vkontakte provider for league/oauth2-client

1.0.1 2025-07-25 20:10 UTC

This package is auto-updated.

Last update: 2025-07-25 21:55:37 UTC


README

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

Installation

composer require lsupp/oauth2-vkontakte

Add to config/packages/knpu_oauth2_client.yaml

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