<?php

return ['database' => 'default', 'grant_types' => ['password' => ['class' => '\\League\\OAuth2\\Server\\Grant\\PasswordGrant', 'access_token_ttl' => 7200, 'callback' => function ($username, $password) {
    // oauth2 password 授权方式,回调
    return OAuthController::passwordVerify($username, $password);
}], 'refresh_token' => ['class' => 'League\\OAuth2\\Server\\Grant\\RefreshTokenGrant', 'access_token_ttl' => 7200, 'refresh_token_ttl' => 7200, 'rotate_refresh_tokens' => true]], 'token_type' => 'League\\OAuth2\\Server\\TokenType\\Bearer', 'state_param' => false, 'scope_param' => false, 'scope_delimiter' => ',', 'default_scope' => null, 'access_token_ttl' => 3600, 'limit_clients_to_grants' => false, 'limit_clients_to_scopes' => false, 'limit_scopes_to_grants' => false, 'http_headers_only' => false];