Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to v1.0.3 #97

Merged
merged 23 commits into from
Dec 31, 2024
Merged

Update to v1.0.3 #97

merged 23 commits into from
Dec 31, 2024

Conversation

GamerVII-NET
Copy link
Collaborator

No description provided.

Gamer-VII and others added 23 commits December 8, 2024 19:34
Introduced player management APIs, including a new endpoint for fetching player lists, and defined necessary data transfer objects. Enhanced hub connections by refactoring the PlayersController and GameServerHub, simplifying connection handling and user session management. Additionally, fixed a typo in the Russian summary description for profile fetching.
Implemented POST and DELETE operations for managing the player whitelist within profiles. Users can now be added or removed from a profile's whitelist, enhancing the profile management capabilities. Authorization is required for these operations to ensure security and proper access control.
Included a list of whitelisted users to the ProfileReadInfoDto by mapping user data to PlayerReadDto. Updated methods for adding and removing users from the whitelist to directly use the user's UUID.
Introduce a new GET endpoint to retrieve the head texture of a user using their UUID. This includes adding the `GetUserHead` method in `TextureIntegrationHandler` and mapping the endpoint in `EndpointsExtensions`. Additionally, fix condition checks for whitelist validation in `ProfileHandler` for more precise user UUID matching.
Update the player whitelist endpoints to include profileName and userUuid as route parameters, enhancing the specificity and flexibility of the API. This change ensures that operations are correctly associated with the specified profile and player.
Add logic to check the user's whitelist and forbid access if the user's UUID is present in the profile's UserWhiteListGuid. This ensures users are blocked when they shouldn't have access to certain profiles.
Updated API endpoints to require specific user roles for authorization, primarily limiting access to admin users. Adjusted user profile retrieval logic to filter game profiles based on user roles, enhancing security by ensuring that only authorized users can access or modify
Updated the `Real` and `Virtual` properties from `int` to `decimal` in `UnicoreAuthResult`. This ensures better precision for these values, accommodating scenarios requiring fractional numbers.
This update ensures better precision for monetary values in the `AzuriomAuthResult` class. It prevents potential inaccuracies that might occur with integer-based representations of currency.
Implemented ban and pardon endpoints to manage player access. Updated handlers and authentication logic to respect the ban status by blocking banned players from logging in or joining a server. Enhanced the system to handle empty input lists for ban/pardon actions with appropriate error responses.
Added a check to deny access in ProfileHandler if a user is banned. This improves security and ensures banned users cannot perform unauthorized actions.
Adjust the filtering condition to ensure profiles are correctly retrieved based on `IsEnabled` status and `UserWhiteListGuid` count. This improves clarity and accuracy in determining accessible profiles for users.
Wrap the middleware logic in a try-catch block to capture exceptions and report them to the bug tracker. Respond with a proper error message and status code when a failure occurs. This ensures the application handles errors more robustly.
Integrated IMapper to map the user entity to PlayerReadDto when adding a player to the whitelist. Updated the response to include the mapped user data for improved clarity and consistency in the API output.
Modified the TestAuthenticationHandler to assign an "Admin" role claim to the identity during authentication. This adjustment helps simulate role-based scenarios in testing environments.
Update the profile whitelist logic to use a case-insensitive UUID comparison and correct the condition for non-empty whitelist checks. This ensures proper validation and prevents potential mismatches due to casing issues.
@GamerVII-NET GamerVII-NET merged commit 2ecc468 into master Dec 31, 2024
1 check passed
GamerVII-NET added a commit that referenced this pull request Dec 31, 2024
Merge pull request #97 from Gml-Launcher/develop
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.

3 participants