Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use shorter pipe names on iOS/macOS/Mac Catalyst #2119

Closed
1 task done
kevinchalet opened this issue Jul 1, 2024 · 0 comments · Fixed by #2123
Closed
1 task done

Use shorter pipe names on iOS/macOS/Mac Catalyst #2119

kevinchalet opened this issue Jul 1, 2024 · 0 comments · Fixed by #2123

Comments

@kevinchalet
Copy link
Member

Confirm you've already contributed to this project or that you sponsor it

  • I confirm I'm a sponsor or a contributor

Describe the solution you'd like

Pipes are now disabled by default on iOS/macOS/Mac Catalyst but are still supported. Unfortunately, the default pipe name generated by OpenIddict combined to the prefix used by the .NET implementation is too long, which throws an exception on macOS:

The path '/var/folders/5j/jjxtct5j1gvg35z6sdh2fz0w0000gn/T/CoreFxPipe_OpenIddict.Client.SystemIntegration-_fF5_2tWzI54dfcnJYNS5rInXlVRpta1Stdk_yRKHQg\60a75d52-219c-4ba4-b4d1-bdaaaee04f56' is of an invalid length for use with domain sockets on this platform.  The length must be between 1 and 104 characters, inclusive. (Parameter 'path')

To mitigate that, we'll need to use shorter application discriminator and instance identifiers (and remove the OpenIddict.Client.SystemIntegration- prefix, potentially).

Additional context

Reported by @xperiandri.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment