Sign in with Apple in .Net Framework desktop app

3 weeks ago 15
ARTICLE AD BOX

I am currently working on a .NET Framework 4.8 desktop application and I've successfully integrated Google Login using the Google.Apis.Auth library. I am now looking to add "Sign in with Apple" (SIWA) but am hitting two major roadblocks:

Lack of a specialized Library: Is there a .NET library similar to Google.Apis.Auth that handles the SIWA flow for desktop (OIDC/OAuth2), specifically for .NET Framework 4.8? Most resources I find are for ASP.NET Core or native iOS.

The Localhost Restriction: Apple explicitly states that the redirect_uri cannot be localhost or an IP address. For a desktop app, the standard practice (which Google allows) is using a local loopback address like http://127.0.0.1:port.

I want to launch the system browser for the user to sign in and then capture the authorization code/token back in my desktop app.

Is there a "standard" or realistic way to handle the redirect for a distributed desktop app given Apple's domain requirements?

Read Entire Article