Skip to content

feat: new public games api configuration#67

Merged
jacobtread merged 1 commit intomasterfrom
feature-public-games
May 10, 2024
Merged

feat: new public games api configuration#67
jacobtread merged 1 commit intomasterfrom
feature-public-games

Conversation

@jacobtread
Copy link
Member

Adds the option to allow requesting the actively running list of games from the server without requiring authentication

This adds two new config options under a new api section, below are the default values:

{
    "api": {
        "public_games": false,
        "public_games_hide_players": true
    }
}

Setting public_games to true will allow anyone to request the /api/games endpoint without requiring auth, by default the details about the players of the game are not included in this response unless the user is authenticated. You can allow unauthenticated users to see the players in each game by setting public_games_hide_players to false.

Warning

Set public_games_hide_players to false at your own discretion, accounts created through the in-game account creator will expose the user email as their player name if this is enabled (Unless they change their name in the server dashboard which is recommended)

@jacobtread jacobtread merged commit 74fa9c1 into master May 10, 2024
@jacobtread jacobtread deleted the feature-public-games branch May 10, 2024 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments