SpongePowered/Ore

API Responses Differ

Closed this issue · 1 comments

Describe the bug

API response permissions are not being created properly.

To Reproduce

  1. Create an auth instance with an API key
  2. Take the session ID and send a request to the URL in the description above (LuckPerms), check the permission response output.

It will look like this when using a session created via an auth key (the key has view_public_info checked)

{
    "type": "project",
    "permissions": []
}

When you use a session created without an auth key, it will look like this:

{
    "type": "project",
    "permissions": [
        "view_public_info"
    ]
}

Expected behavior

Apikey sessions to have the view_public_info when selected during creation.

Screenshots

image

Environment

  • Windows 10

Additional context

Katrix commented

Can't reproduce with latest commit. Might have been fixed in a refactoring