Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions PayCheckServerLib/Responses/IAM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,15 @@ namespace PayCheckServerLib.Responses;

public class IAM
{
// args here represent any argument
[HTTP("POST", "/iam/v3/oauth/platforms/steam/token?{args}")]
[HTTP("POST", "/iam/v3/oauth/platforms/steam/token")]
[AuthenticationRequired("", AuthenticationRequiredAttribute.Access.None, false)]
public static bool SteamTokenNoArgs(HttpRequest request, ServerStruct serverStruct) => SteamToken(request, serverStruct);
[HTTP("POST", "/iam/v3/oauth/platforms/device/token")]
[AuthenticationRequired("", AuthenticationRequiredAttribute.Access.None, false)]
public static bool DeviceTokenNoArgs(HttpRequest request, ServerStruct serverStruct) => DeviceToken(request, serverStruct);

// args here represent any argument
[HTTP("POST", "/iam/v3/oauth/platforms/steam/token?{args}")]
[AuthenticationRequired("", AuthenticationRequiredAttribute.Access.None, false)]
public static bool SteamToken(HttpRequest request, ServerStruct serverStruct)
{
Expand Down Expand Up @@ -104,7 +111,7 @@ to get game to allow email + password auth
return true;
}

[HTTP("POST", "/iam/v3/oauth/platforms/device/token")]
[HTTP("POST", "/iam/v3/oauth/platforms/device/token?{args}")]
[AuthenticationRequired("", AuthenticationRequiredAttribute.Access.None, false)]
public static bool DeviceToken(HttpRequest request, ServerStruct serverStruct)
{
Expand Down
Loading