Skip to content

Commit

Permalink
Update to v0.1.0-rc2-hotfix1 (#81)
Browse files Browse the repository at this point in the history
* Update submodule link Gml.Core

* Feature/skin provider (#78)

* Add endpoints for fetching user skins and cloaks

Introduced new GET endpoints to retrieve user skin and cloak textures. Enhanced metadata and profile handling by incorporating HttpContext. Corrected minor typos and updated launch settings.

* Update test console info

* Update unit test Restore

* Disable ProfileInfoTest

* Feature/skin provider (#77)

* Update submodule link Gml.Core

* Add endpoints for fetching user skins and cloaks

Introduced new GET endpoints to retrieve user skin and cloak textures. Enhanced metadata and profile handling by incorporating HttpContext. Corrected minor typos and updated launch settings.

* Update submodule link Gml.Core

* Update test console info

* Update unit test Restore

* Disable ProfileInfoTest

* Re-enable and update profile assertions

Re-enabled previously commented out assertions in the profile test case. This ensures that the profile data is correctly deserialized and validated.

* Add endpoint for fetching detailed profile information

Introduce a new POST endpoint `/api/v1/profiles/details` to retrieve detailed information about a game profile. Includes validation of input data and structured response with profile details, requiring authorization.

* Add texture endpoint to GmlManager configuration

Extended GmlManager and related settings to include a new texture endpoint parameter, defaulting to "http://gml-web-skins:8085". Updated environment variables handling and profile name validation to support additional characters like spaces and dashes.

* Update submodule link Gml.Core

* Set new environment variable and adjust method return

Added the SERVICE_TEXTURE_ENDPOINT environment variable for tests and changed PostsAsync path in test methods. Removed exception throwing for missing environment variables, now returning an empty string instead.

* Update Update submodule link Gml.Core

* Update submodule link Gml.Core

* Remove Address and Port properties from ServerReadDto

This commit refines the ServerReadDto model by removing the Address and Port properties. This change simplifies the data transfer object and aligns better with current application requirements.

* Fix endpoint URL in MinecraftHandler

Update the URL for the cape texture from 'skins' to 'capes' to resolve incorrect resource reference. This ensures the proper endpoint is accessed for retrieving the cape textures for users.

* Update submodule link Gml.Core

* Add SERVICE_TEXTURE_ENDPOINT to launchSettings

This update introduces the SERVICE_TEXTURE_ENDPOINT variable in the launchSettings.json file, which is intended for configuring the texture service URL. This change ensures proper endpoint configuration during development and testing.

* Update AuthUser initialization in ProfileHandler

Changed the AccessToken to a 50-character string of zeros and added Uuid generation for the AuthUser object. Also moved assignment of the Manager property inside the object initializer.

* Update submodule link Gml.Core
  • Loading branch information
GamerVII-NET authored Oct 15, 2024
1 parent b887cf8 commit 6086381
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/Gml.Web.Api/Core/Handlers/ProfileHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -321,12 +321,12 @@ public static async Task<IResult> GetProfileDetails(

var user = new AuthUser
{
AccessToken = string.Empty,
Name = "Admin"
AccessToken = new string('0', 50),
Uuid = Guid.NewGuid().ToString(),
Name = "Admin",
Manager = gmlManager
};

user.Manager = gmlManager;

var profileInfo = await gmlManager.Profiles.GetProfileInfo(profile.Name, new StartupOptions
{
FullScreen = createInfoDto.IsFullScreen,
Expand Down
3 changes: 2 additions & 1 deletion src/Gml.Web.Api/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"PROJECT_NAME": "GmlServer",
"PROJECT_DESCRIPTION": "GmlServer Description",
"PROJECT_POLICYNAME": "GmlPolicy",
"PROJECT_PATH": ""
"PROJECT_PATH": "",
"SERVICE_TEXTURE_ENDPOINT": "http://gml-web-skins:8085"
}
}
}
Expand Down

0 comments on commit 6086381

Please sign in to comment.