function oauth2_server_test_oauth2_server_default_scope in OAuth2 Server 7
Same name and namespace in other branches
- 8 tests/modules/oauth2_server_test/oauth2_server_test.module \oauth2_server_test_oauth2_server_default_scope()
- 2.0.x tests/modules/oauth2_server_test/oauth2_server_test.module \oauth2_server_test_oauth2_server_default_scope()
Implements oauth2_server_default_scope().
File
- tests/
oauth2_server_test.module, line 40 - Support module for OAuth2 Server testing.
Code
function oauth2_server_test_oauth2_server_default_scope($server) {
// Grant "basic" and "admin" scopes by default.
if ($server->name == 'test') {
return array(
'basic',
'admin',
);
}
}