Skip to content

Commit

Permalink
Fix passkey authantication method
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtek2288 committed Oct 29, 2024
1 parent bbaa34a commit 0a01937
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 7 deletions.
4 changes: 2 additions & 2 deletions LeanCode.Kratos.Client.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"inputSpec": "https://raw.githubusercontent.com/ory/sdk/master/spec/kratos/v1.2.0.json",
"inputSpec": "api/openapi.yaml",
"generatorName": "csharp",
"library": "generichost",
"allowUnicodeIdentifiers": true,
Expand All @@ -18,7 +18,7 @@
"packageGuid": "{00000000-0000-0000-0000-000000000000}",
"packageTitle": "Ory Kratos Client",
"packageName": "LeanCode.Kratos.Client",
"packageVersion": "1.2.0",
"packageVersion": "1.2.0-fix.1",
"targetFramework": "net8.0",
"useSourceGeneration": false,
"validatable": false,
Expand Down
1 change: 1 addition & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6576,6 +6576,7 @@ components:
- webauthn
- lookup_secret
- v0.6_legacy_session
- passkey
title: The method used
type: string
organization:
Expand Down
2 changes: 1 addition & 1 deletion src/LeanCode.Kratos.Client/LeanCode.Kratos.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<Description>Ory Kratos client generated from official OpenAPI specification</Description>
<Copyright>LeanCode</Copyright>
<RootNamespace>LeanCode.Kratos.Client</RootNamespace>
<Version>1.2.0</Version>
<Version>1.2.0-fix.1</Version>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\LeanCode.Kratos.Client.xml</DocumentationFile>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<RepositoryUrl>https://github.com/leancodepl/dotnet-kratos-client.git</RepositoryUrl>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,12 @@ public enum MethodEnum
/// <summary>
/// Enum V06LegacySession for value: v0.6_legacy_session
/// </summary>
V06LegacySession
V06LegacySession,

/// <summary>
/// Enum Passkey for value: passkey
/// </summary>
Passkey
}

/// <summary>
Expand Down Expand Up @@ -149,6 +154,9 @@ public static MethodEnum MethodEnumFromString(string value)
if (value.Equals("v0.6_legacy_session"))
return MethodEnum.V06LegacySession;

if (value.Equals("passkey"))
return MethodEnum.Passkey;

throw new NotImplementedException($"Could not convert value to type MethodEnum: '{value}'");
}

Expand Down Expand Up @@ -186,6 +194,9 @@ public static MethodEnum MethodEnumFromString(string value)
if (value.Equals("v0.6_legacy_session"))
return MethodEnum.V06LegacySession;

if (value.Equals("passkey"))
return MethodEnum.Passkey;

return null;
}

Expand Down Expand Up @@ -224,6 +235,9 @@ public static string MethodEnumToJsonValue(MethodEnum? value)
if (value == MethodEnum.V06LegacySession)
return "v0.6_legacy_session";

if (value == MethodEnum.Passkey)
return "passkey";

throw new NotImplementedException($"Value could not be handled: '{value}'");
}

Expand Down
6 changes: 3 additions & 3 deletions src/LeanCode.Kratos.Client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $properties = @(
'validatable=false',
'nullableReferenceTypes=true',
'hideGenerationTimestamp=true',
'packageVersion=1.2.0',
'packageVersion=1.2.0-fix.1',
'packageAuthors=LeanCode',
'packageCompany=LeanCode',
'packageCopyright=LeanCode',
Expand Down Expand Up @@ -128,7 +128,7 @@ Authentication schemes defined for the API:


## Build
- SDK version: 1.2.0
- SDK version: 1.2.0-fix.1
- Generator version: 7.7.0
- Build package: org.openapitools.codegen.languages.CSharpClientCodegen

Expand Down Expand Up @@ -176,7 +176,7 @@ Authentication schemes defined for the API:
- packageName: LeanCode.Kratos.Client
- packageTags:
- packageTitle: Ory Kratos Client
- packageVersion: 1.2.0
- packageVersion: 1.2.0-fix.1
- releaseNote: Minor update
- returnICollection: false
- sortParamsByRequiredFlag:
Expand Down

0 comments on commit 0a01937

Please sign in to comment.