lib/rack/oauth2/server/helper.rb in rack-oauth2-server-2.0.0.beta3 vs lib/rack/oauth2/server/helper.rb in rack-oauth2-server-2.0.0.beta4
- old
+ new
@@ -52,12 +52,12 @@
# authenticated, or while processing authorization request.
#
# @return [Array<String>, nil] Scope names, e.g ["read, "write"]
def scope
if access_token
- @scope ||= Server::Utils.normalize_scopes(Server.get_access_token(access_token).scope)
+ @scope ||= Server.get_access_token(access_token).scope
elsif authorization
- @scope ||= Server::Utils.normalize_scopes(Server.get_auth_request(authorization).scope)
+ @scope ||= Server.get_auth_request(authorization).scope
end
end
# Rejects the request and returns 401 (Unauthorized). You can just
# return 401, but this also sets the WWW-Authenticate header the right