Fix passing scope name to wrong scope openid connect error message

This commit is contained in:
Jonne Haß 2020-01-16 16:33:12 +01:00
parent 3abf6b6f41
commit 9bb1a36e3d

View file

@ -49,7 +49,7 @@ module Api
def build_scopes(req)
@scopes = req.scope.map {|scope|
scope.tap do |scope_name|
req.invalid_scope! I18n.t("api.openid_connect.authorizations.new.unknown_scope") \
req.invalid_scope! I18n.t("api.openid_connect.authorizations.new.unknown_scope", scope_name: scope_name) \
unless auth_scopes.include?(scope_name)
end
}