This repo is Xamarin.Auth samples solution repo extracted/separated from original Xamarin.Auth repo:
https://github.com/xamarin/Xamarin.Auth
This repo has faster update cadence than actual nuget samples in Xamarin.Auth repo:
Documenation in this repo is in working stage and is published to the main repo.
Current docs are based on component docs and will be included in the component.
-
github issues https://github.com/xamarin/Xamarin.Auth/issues
-
stackoverflow http://stackoverflow.com/search?tab=votes&q=xamarin.auth
Samples are available as
- Xamarin Traditional/Standard (Xamarin.Android and Xamarin.iOS) ./Traditional.Standard/Providers/
- Xamarin.Forms Samples Evolve16 Labs Presenters implementation, no Custom Renderers ./Xamarin.Forms/Evolve16/
- Xamarin.Forms Sample TODO ./Xamarin.Forms/NativeUI/ Custom Renderers and Presenters (Dependency Service/Injection) implementation
Suggestion: start with Xamarin Traditional/Standar samples.
Discussion[s] about Xamarin.Auth is on community Xamarin Chat (Slack team) in
#xamarin-auth-social
channel/room:
https://xamarinchat.slack.com/messages/C4TD1NHPT/
For those without account go here and get one:
https://xamarinchat.herokuapp.com/
Following docs (in this repo) are working docs which will be copied to Xamarin.Auth official repo together with samples:
In Package Console - Visual Studio:
Xamarin Traditional/Standard (Xamarin.Android and Xamarin.iOS) samples for numerous OAuth providers:
Get-Project Xamarin.Auth.Sample.XamarinAndroid | Install-Package Xamarin.Auth
Get-Project Xamarin.Auth.Sample.XamarinIOS | Install-Package Xamarin.Auth
Get-Project Xamarin.Auth.Sample.UniversalWindowsPlatform | Install-Package Xamarin.Auth
Get-Project Xamarin.Auth.Sample.WindowsPhone8 | Install-Package Xamarin.Auth
Get-Project Xamarin.Auth.Sample.WindowsPhone81 | Install-Package Xamarin.Auth
Get-Project Xamarin.Auth.Sample.WinRTWindows81 | Install-Package Xamarin.Auth
Get-Project Xamarin.Auth.Sample.WinRTWindowsPhone81 | Install-Package Xamarin.Auth
Get-Project Xamarin.Auth.SamplesData | Install-Package Xamarin.Auth
Get-Project Xamarin.Auth.Sample.XamarinAndroid | Update-Package Xamarin.Auth
Get-Project Xamarin.Auth.Sample.XamarinIOS | Update-Package Xamarin.Auth
Get-Project Xamarin.Auth.Sample.UniversalWindowsPlatform | Update-Package Xamarin.Auth
Get-Project Xamarin.Auth.Sample.WindowsPhone8 | Update-Package Xamarin.Auth
Get-Project Xamarin.Auth.Sample.WindowsPhone81 | Update-Package Xamarin.Auth
Get-Project Xamarin.Auth.Sample.WinRTWindows81 | Update-Package Xamarin.Auth
Get-Project Xamarin.Auth.Sample.WinRTWindowsPhone81 | Update-Package Xamarin.Auth
Get-Project Xamarin.Auth.SamplesData | Update-Package Xamarin.Auth
Get-Project Xamarin.Auth.Sample.XamarinAndroid | Update-Package Xamarin.Auth -IncludePrerelease
Get-Project Xamarin.Auth.Sample.XamarinIOS | Update-Package Xamarin.Auth -IncludePrerelease
Get-Project Xamarin.Auth.Sample.UniversalWindowsPlatform | Update-Package Xamarin.Auth -IncludePrerelease
Get-Project Xamarin.Auth.Sample.WindowsPhone8 | Update-Package Xamarin.Auth -IncludePrerelease
Get-Project Xamarin.Auth.Sample.WindowsPhone81 | Update-Package Xamarin.Auth -IncludePrerelease
Get-Project Xamarin.Auth.Sample.WinRTWindows81 | Update-Package Xamarin.Auth -IncludePrerelease
Get-Project Xamarin.Auth.Sample.WinRTWindowsPhone81 | Update-Package Xamarin.Auth -IncludePrerelease
Get-Project Xamarin.Auth.SamplesData | Update-Package Xamarin.Auth -IncludePrerelease
Android
global::Xamarin.Auth.Presenters.XamarinAndroid.AuthenticationConfiguration.Init(this, bundle);
iOS
global::Xamarin.Auth.Presenters.XamarinIOS.AuthenticationConfiguration.Init();
Shared Code (Portable Class Library)
var authenticator = new OAuth2Authenticator
(
ServerInfo.ClientId,
Scope,
ServerInfo.AuthorizationEndpoint,
ServerInfo.RedirectionEndpoint,
null,
isUsingNativeUI: true
);
authenticator.Completed += OnAuthCompleted;
authenticator.Error += OnAuthError;
var presenter = new Xamarin.Auth.Presenters.OAuthLoginPresenter();
presenter.Login(authenticator);
Get-Project ComicBook | Install-Package Xamarin.Auth
Get-Project ComicBook.Droid | Install-Package Xamarin.Auth
Get-Project ComicBook.iOS | Install-Package Xamarin.Auth
Get-Project ComicBook.WinPhone8 | Install-Package Xamarin.Auth
Get-Project ComicBook | Update-Package Xamarin.Auth
Get-Project ComicBook.Droid | Update-Package Xamarin.Auth
Get-Project ComicBook.iOS | Update-Package Xamarin.Auth
Get-Project ComicBook.WinPhone8 | Update-Package Xamarin.Auth
Get-Project ComicBook | Update-Package Xamarin.Auth -IncludePrerelease
Get-Project ComicBook.Droid | Update-Package Xamarin.Auth -IncludePrerelease
Get-Project ComicBook.iOS | Update-Package Xamarin.Auth -IncludePrerelease
Get-Project ComicBook.WinPhone8 | Update-Package Xamarin.Auth -IncludePrerelease