Skip to content

GetAuthorizedResources fails if there are whitespaces between URIs #161

@kzalys

Description

@kzalys

A request like this:

curl --location --request PUT 'https://auth.greatunihack.com/api/v2/users/5fac4513fb6d6b9104d152ca/permissions' --header 'Authorization: a working token' --data-urlencode 'permissions=["hs:hs_apply:Admin:overview", "hs:hs_discord"]'

Returns:
{"status":400,"error":"failed to parse permissions in request"}

This is likely cause by the whitespace between the URIs in the request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions