With Authgear SDK for Xamarim, you can easily integrate authentication features into your Xamarin apps. In most cases, it involves just a few lines of code to enable multiple authentication methods, such as social logins, passwordless, biometrics logins, one-time-password (OTP) with SMS/WhatsApp, and multi-factor authentication (MFA).
Quick links - π Documentation π Getting Started π οΈ Troubleshooting π₯ Contributing
Authgear is a highly adaptable identity-as-a-service (IDaaS) platform for web and mobile applications. Authgear makes user authentication easier and faster to implement by integrating it into various types of applications - from single-page web apps to mobile applications to API services.
View other Authgear Documentation at https://docs.authgear.com/
Follow the easy steps to start using it:
The sample project can be built on both windows and macOS. The sample has a dependency on the library project, and building the sample would build the library automatically.
However, for packaging the library (e.g. in CICD), since the library project is using MSBuild.Sdk.Extras for its single project, multi-targeting feature (that allows targeting Xamarin.iOS and Xamarin.Android at once within the same project), the project needs a "Desktop msbuild" to package the library. dotnet pack
or dotnet msbuild
would not work (it would complain needing desktop msbuild). Since "Desktop msbuild" is only available on windows, currently, only windows is capable of packaging the library.
Current CI already uses windows image and packs the resultant nuget package as a github action artifact so developers shouldn't need to pack the library on their own.
.NET 6's sdk style project natively support single project, multi-targeting for net6.0-android
, net6.0-ios
and can be built, packed with dotnet build
and dotnet pack
on both windows and macOS. But adopting it would obviously force customers to migrate to .NET 6, so that route was not taken. When appropriate, future upgrades to this SDK can simply revert MSBuild.Sdk.Extras
to Microsoft.NET.Sdk
and multi-target .NET 6+ mobile TFMs.
Two demo apps are included in the Github repo under XamarinFormSample/
. They demonstrate the key features of the SDK on Android and iOS.
To build the Android app:
To build the iOS app:
Please check out our Get help to get solutions for common installation problems and other issues.
To provide feedback or report a bug, please raise an issue on our issue tracker.
Anyone who wishes to contribute to this project, whether documentation, features, bug fixes, code cleanup, testing, or code reviews, is very much encouraged to do so.
To join, just raise your hand on the Authgear Discord server (#trouble) or the GitHub Authgear's discussion board.
If you are unfamiliar with how to contribute to GitHub projects, here is a Getting Started Guide. A full set of contribution guidelines, along with templates, are in progress.
Auhgear is a highly adaptable identity-as-a-service (IDaaS) platform for web and mobile applications. To learn more checkout website