-
Notifications
You must be signed in to change notification settings - Fork 8
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
Update to v1.0.3 #97
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.