I have just realised that OAuth 2 authentication requires a redirect uri to send some refresh tokens back to. I have no idea what uri I should be using for windows phone 8. I have seen something about uri scheme? Does anyone know what has got to be done?
I have placed
as the redirect uri as this blokey does
You should normally try to avoid storing any secrets on a device. Using the "implicit flow" instead with signed tokens.
See this example: https://github.com/auth0/Auth0.Windows8.Cs/blob/master/Auth0Client/Auth0Client.cs or this one specifically for Win Phone 8: https://github.com/auth0/Auth0.WindowsPhone/blob/master/Auth0Client/Auth0Client.cs
client secretin those examples is used for something else.
callback is just a URL that the browser in your app (the
endUri parameter in
WebAuthenticationBroker if using Win8) will recognize as the "end of the flow". "localhost" will do if your code recognizes it as the completion of the transaction.