Fix passing scope name to wrong scope openid connect error message
This commit is contained in:
parent
3abf6b6f41
commit
9bb1a36e3d
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ module Api
|
||||||
def build_scopes(req)
|
def build_scopes(req)
|
||||||
@scopes = req.scope.map {|scope|
|
@scopes = req.scope.map {|scope|
|
||||||
scope.tap do |scope_name|
|
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)
|
unless auth_scopes.include?(scope_name)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue