SpongePowered / Ore

Repository software for Sponge plugins and Forge mods
https://ore.spongepowered.org/
MIT License
77 stars 25 forks source link

API Responses Differ #1056

Closed darbyjack closed 10 months ago

darbyjack commented 2 years ago

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

Additional context

Katrix commented 10 months ago

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