This repository is deprecated; please follow the main search page or use the ‘Related code repos’ widget on the right side of the current page.

DNATestApplication-With-IOS-Auth-Framework

This is sample application built using Native login SDK/framework for basic authentication.

Installation and Setup:

How to integrate IOS Basic Auth framework into application.

1. Add the Authentication.Framework to your Project Bundle (Currently named as DNAAuthentication).

2. Add the Framework binary to your Embedded Binaries Section by going on the path mentioned below Path: <ProjectName>-><ProjectTargate>-><General>-><EmbeddedBinaries>

3. Set Enable Bitcode Flag to NO by going to  <ProjectName>-><ProjectTargate>-><Build Settings>-><Enable Bitcode>

How to use framework API's in application.

 1. Use import DNAAuthentication to import Framwork in a application class.
 
 2. Use DNAAuthenticationManager Class to get instance of DNALoginViewController to use it according to end developers requirement.

alt text

 3. Use DNALoginViewControllerDelegate and confirm to <dnaLoginViewControllerInstance>.delegate for receiving callbacks from DNALoginViewController.

alt text

  1. DNALoginViewControllerDelegate Callback Methods Details :
  didStartAuthenticating(): Gets invoked once authentication process starts.

  authenticationDidSucceed(): Gets invoked one authentication process was successful.

  authenticationDidFail(): Gets invoked if authentication process failed.

alt text

View code on GitHub

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.