WebAuthenticator setup confustion #135
-
Hello! So I am integrating the The only thing I have not done per direction is setup a custom protocol. Mainly because nothing ever explains how the custom protocol works or what to do with it once it is created. Every example I see has something like The "custom" protocol I create right now is just var result = await WebAuthenticator.AuthenticateAsync(new Uri(uri), new Uri("http://localhost:3001/auth/token")); Can someone please explain to me the custom protocol and how it is supposed to work with WebAuthenticator and how I can get the method to return? Thanks!!! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
You can't use http. It has to be completely custom and unique to your app. See https://learn.microsoft.com/en-us/windows/uwp/launch-resume/handle-uri-activation You also need to use that as a redirect uri when you register your app with the oauth provider you're using. |
Beta Was this translation helpful? Give feedback.
aah i see. Yes You'll need to use the provided token to get the other token. Typically that's something your app will need to do on a regular interval and is on you to do.
The O in oauth stands for "overcomplicated".
The webauthenticator api only helps you with the tricky bit of asking the user for credentials and get the result back - it does not handle refreshing your tokens