Function OAuthSession.hasScope
Indicates whether this session has authorization for the given scope.
final bool hasScope
(
string someScope
) nothrow @safe const;
Parameters
Name | Description |
---|---|
someScope | The scope to test for. Only one scope identifier may be specified, so the string should not contain whitespace. |
Returns
true
if someScope is listed in this session's scopes.