You are here

function oauth2_server_permission in OAuth2 Server 7

Implements hook_permission().

File

./oauth2_server.module, line 123
Provides OAuth2 server functionality.

Code

function oauth2_server_permission() {
  return array(
    'administer oauth2 server' => array(
      'title' => t('Administer OAuth2 Server'),
      'description' => t('Manage servers, scopes, and clients.'),
      'restrict access' => TRUE,
    ),
    'use oauth2 server' => array(
      'title' => t('Use OAuth2 Server'),
      'description' => t('Use OAuth2 Server for authorization.'),
    ),
  );
}