NOTE: this is very outdated as of 03/19/19. I don't recommend using this demo. But I DO recommend using Auth0! It's great! See their documentation here: https://auth0.com/docs/quickstart/native/xamarin/01-login
In the src/Auth0Demo.Config/Temp
folder, you'll see a file named PrivateKeys.cs
. Move this file into the src/Auth0Demo.Config
folder. The final path should be src/Auth0Demo.Config/PrivateKeys.cs
:
src/Auth0Demo.Config/Temp/PrivateKeys.cs --> src/Auth0Demo.Config/PrivateKeys.cs
Sign up for an Auth0 account. Follow the instructions to setup whichever auth providers you're interested in (Github, Microsoft, LinkedIn, etc.), and then find your Auth0 Domain and Client ID:
The UWP target is not currently working. For some reason, the static Settings class cannot be found at runtime, and I'm not sure why. I'll try to fix when I get time, but no promises.
For the purposes of this sample, the token and profile information that is recieved after a successful login is stored in Xam.Plugins.Settings. This is done merely as a convenience for this demo. This is NOT a secure storage medium. It is strongly advised that you instead use some sort of secure storage mechanism, such as the iOS keychain, or perhaps enctrypted SQLite or encrypted Akavache. Secure storage of tokens and profiles is your responsibility.
This secure key/value pair secure storage plugin may be a good fit: https://github.com/sameerkapps/SecureStorage