Author: Erik Jan de Wit ([email protected])
Level: Beginner
Technologies: Xamarin, Android, iOS, RHMAP
Summary: A demonstration of how to authenticate with SAML IdP with RHMAP
Community Project : Feed Henry
Target Product: RHMAP
Product Versions: RHMAP 3.8.0+
Source: https://github.com/feedhenry-templates/saml-xamarin-app
rerequisites: fh-dotnet-sdk : 3.+, Visual Studio : 2013/2015 or Xamarin Studio, SDK: iOS 8 or newer, Android SDK : 22+ or newer
Simple native Windows app to work with SAML Service
connector service in RHMAP. The user can login to the app using SAML authentication, user details available on SAML IdP are displayed once successfully logged in.To configure the service in your RHMAP platform read the SAML notes.
This application and its cloud services are available as a project template in RHMAP as part of the "SAML Project" template.
If you wish to contribute to this template, the following information may be helpful; otherwise, RHMAP and its build facilities are the preferred solution.
-
Clone this project
-
Populate
saml-xamarin-app/saml-ios-app/fhconfig.plist
and/orsaml-xamarin-app/saml-android-app/Assets/fhconfig.properties
with your values as explained here for ios and here for android. -
Open
saml-xamarin-app.sln
-
Run the project
- Compilation error: error XA5209: Unzipping failed
When building, Xamarin fetches dependencies in ~/.local/share/Xamarin/
, it happens from times to times that the download of dependencies goes wrong and leave your .local
folder in a corrupted state.
It happens when building Android (more dependencies to fetch), the best way to fix issue like missing Android.Support.v4 support is to delete ~/.local/share/
folder and build again.
In this example we used FHClient.GetCloudRequest
to make request on the REST endpoint setup to deal with SAML authentication.