Skip to content

Conversation

@meJevin
Copy link
Owner

@meJevin meJevin commented Jul 2, 2022

Thanks @dgvives!

@meJevin meJevin self-assigned this Jul 2, 2022
@meJevin
Copy link
Owner Author

meJevin commented Jul 2, 2022

Leaked my test token again 🙄

meJevin added 2 commits July 2, 2022 05:35
commit 6ac8333
Author: Michael <mejevin@gmail.com>
Date:   Sat Jul 2 04:16:06 2022 +0300

    [Change] Move CryptlexClientFactory to the library itself (#20)
Merge branch 'main' into develop
@meJevin meJevin merged commit 9de0340 into main Jul 2, 2022
Task<Uri> InitiateSSOLogin(string companyId, string returnUrl);
Task<Uri> GetSSOReturnUrl(string companyId);
Task<bool> CheckSSOEnabled(string CompanyId);
Task<Uri> InitiateSSOLogin(string CompanyId, string ReturnUrl);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per Microsoft C# coding conventions https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/coding-style/coding-conventions
Property names are PascalCase, while parameters and internal variables are camelCase

Task<Uri> InitiateSSOLogin(string companyId, string returnUrl);

Comment on lines +10 to +13
/// <summary>
/// "active" "inactive"
/// </summary>
public string? Status { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment on lines +6 to +7
[JsonPropertyName("comapnyId")]
public string ComapnyId { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

companyId has been renamed to accountAlias on the last Cryptlex WebAPI update

https://api.cryptlex.com/v3/docs#tag/Authentication/operation/post/v3/accounts/login/saml/verify

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I'll get on it :)

public DateTime? CreatedAt { get; set; }
public DateTime? UpdatedAt { get; set; }
/// <summary>
/// "windows" "linux" "macOs" "android" "iOs"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is lowercase
https://api.cryptlex.com/v3/docs#tag/Activations/operation/get/v3/activations/%7Bid%7D

"windows" "linux" "macos" "android" "ios"

Comment on lines +14 to +17
/// <summary>
/// "windows" "linux" "macOs" "android" "iOs"
/// </summary>
public string? Os { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, possible values are lowercase
https://api.cryptlex.com/v3/docs#tag/Activations/operation/get/v3/activations/%7Bid%7D

"windows" "linux" "macos" "android" "ios"

Comment on lines +13 to +14
[JsonPropertyName("os")]
public string Os { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/// <summary>
/// Name of the operating sistem
/// Enum: "windows" "linux" "macos" "android" "ios" 
/// </summary>

Comment on lines +13 to +14
[JsonPropertyName("os")]
public string Os { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/// <summary>
///  Name of the operating system
///  Enum: "windows" "linux" "macos" "android" "ios" 
/// </summary>

Comment on lines +14 to 15
[JsonPropertyName("@private")]
public bool? @private { get; set; }
Copy link
Contributor

@dgvives dgvives Jul 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Property name serialized should be string literal "private"
https://api.cryptlex.com/v3/docs#tag/Releases/operation/post/v3/releases

[JsonPropertyName("private")]
public bool? Private { get;  set; }

Comment on lines +14 to 15
[JsonPropertyName("@private")]
public bool? @private { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JsonPropertyName("private")]
public bool? Private { get; set; }

public string Body { get; set; }
[JsonPropertyName("replyTo")]
public string? ReplyTo { get; set; }
[JsonPropertyName("@event")]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JsonPropertyName("event")]
public string Event{get;set;}

public string? Body { get; set; }
[JsonPropertyName("replyTo")]
public string? ReplyTo { get; set; }
[JsonPropertyName("@event")]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JsonPropertyName("event")
public string? Event{get;set;}

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