Skip to content

Commit

Permalink
OF-256 Implement auth with playfab
Browse files Browse the repository at this point in the history
  • Loading branch information
tsviatkov committed Oct 24, 2023
1 parent a6821e4 commit c79b66e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Openfort.SDK/Generated/Model/UpdateUserProjectRequestRole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public UpdateUserProjectRequestRole(UserProjectRoleMEMBER actualInstance)
{
this.IsNullable = false;
this.SchemaType= "anyOf";
this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
this.ActualInstance = actualInstance;
}

/// <summary>
Expand All @@ -56,7 +56,7 @@ public UpdateUserProjectRequestRole(UserProjectRoleADMIN actualInstance)
{
this.IsNullable = false;
this.SchemaType= "anyOf";
this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
this.ActualInstance = actualInstance;
}


Expand Down
13 changes: 13 additions & 0 deletions Openfort.SDK/OpenfortClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,19 @@ public TransactionIntentsApiWrapper TransactionIntents
}
}

private OAuthApiWrapper? oauth;
public OAuthApiWrapper OAuth
{
get
{
if (oauth == null)
{
oauth = new OAuthApiWrapper(apiKey, basePath);
}
return oauth;
}
}

public WebHookEvent? ConstructWebhookEvent(string body, string signature) {
var signedPayload = Sign(body);
if (!string.Equals(signedPayload, signature, StringComparison.OrdinalIgnoreCase)) {
Expand Down

0 comments on commit c79b66e

Please sign in to comment.