You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am integrating Ory SDK in .NET Maui app. I started with registration flow. I tried multiple times to register with the following password:
Test@123
But each time I got null from the result. The registration code is:
new Ory.Client.Model.ClientUpdateRegistrationFlowBody
(
new ClientUpdateRegistrationFlowWithPasswordMethod
(
method: "password",
password: registrationPassword,
traits: registrationTraits
)
);
try
{
result = _frontendApi.UpdateRegistrationFlow(flowId, clientUpdateRegistrationFlowBody);
}
catch (ApiException e)
{
Debug.Print("Exception when calling FrontendApi.UpdateRegistrationFlow: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
When I looked in the Logs & Events section of the Activity Tab in my Ory Network Project it says that the registration was failed. The json from the log:
{"name":"RegistrationFailed","timestamp":"2025-02-07T15:07:47Z","attributes":[{"key":"GeoLocationRegion","value":"WB"},{"key":"SelfServiceFlowType","value":"api"},{"key":"SelfServiceMethodUsed","value":""},{"key":"Reason","value":"the password does not fulfill the password policy because: The password has been found in data breaches and must no longer be used."},{"key":"FlowID","value":"2903936e-aafc-46fd-a609-ebf375c5ef55"},{"key":"ProjectEnvironment","value":"dev"},{"key":"GeoLocationCity","value":"Asansol"},{"key":"GeoLocationCountry","value":"IN"}]}
The sdk should get the error message when any flow fails in order to properly inform the app users.
I used a secure password and successfully registered myself. But the api should return correct error message and error code so that the developer can inform the user about the mistake they are doing and/or take appropriate next steps in the app based on the error code.
Preflight checklist
Ory Network Project
https://kind-kapitsa-rmqphy91zf.projects.oryapis.com
Describe the bug
I am integrating Ory SDK in .NET Maui app. I started with registration flow. I tried multiple times to register with the following password:
Test@123
But each time I got null from the result. The registration code is:
When I looked in the
Logs & Events
section of theActivity
Tab in my Ory Network Project it says that the registration was failed. The json from the log:{"name":"RegistrationFailed","timestamp":"2025-02-07T15:07:47Z","attributes":[{"key":"GeoLocationRegion","value":"WB"},{"key":"SelfServiceFlowType","value":"api"},{"key":"SelfServiceMethodUsed","value":""},{"key":"Reason","value":"the password does not fulfill the password policy because: The password has been found in data breaches and must no longer be used."},{"key":"FlowID","value":"2903936e-aafc-46fd-a609-ebf375c5ef55"},{"key":"ProjectEnvironment","value":"dev"},{"key":"GeoLocationCity","value":"Asansol"},{"key":"GeoLocationCountry","value":"IN"}]}
The sdk should get the error message when any flow fails in order to properly inform the app users.
Reproducing the bug
Relevant log output
Relevant configuration
Version
Ory.Client Version=1.16.2
On which operating system are you observing this issue?
None
In which environment are you deploying?
Ory Network
Additional Context
No response
The text was updated successfully, but these errors were encountered: