C
C#14mo ago
sauyce

❔ Unity authentication with .NET Core Web API (WITHOUT web browser redirect) and Azure.

Has anyone here done authentication for a Unity desktop application with a .NET Core Web API and Azure? I'm still wondering what the best way is to do this without needing a web browser redirect, i.e., I would like to be able to sign up/sign in right on my Unity client. From what I can see, if I were to use an Azure IDP, there must be a browser redirect unless I roll with my own JWT token provider. I don't want to do this however. What are my options, and what are some things that I might not be aware of with this approach?
7 Replies
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
sauyce
sauyceOP14mo ago
Okay, let's say we have the redirect. Does this mean that my Unity application would need to have an embedded browser for this to work? Because otherwise I would not be able to retrieve the token from an external browser right?
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
sauyce
sauyceOP14mo ago
Yeah, I'm probably not going to go with the pin solution. As for the localhost website, that's only for development right? I'm using Azure so I would direct my users to their authorization link, and then pass them a redirect link back to my Unity application with a deeplink. Does that sound right?
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
sauyce
sauyceOP14mo ago
yeah, I think that's what the deeplink should be doing. Like, it just hit me why you can open up applications from the browser, and I'm guessing this is how we get native apps to work, i.e., get the tokens needed.
Accord
Accord14mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server