Skip to content

Bureau-Inc/IOS-SDK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bureau SDK for iOS

Integration

 - Drag and drop the BureauAuth.xcframework into the project
 - Verify the BureauAuth.xcframework is included under frameworks,Libraries, and Embedded content(Under Targets) and Embed & Sign option is selected
 - import BureauAuthentication into the class where the framework is needed
 - In your info.plist file add this:
 
<key>NSAppTransportSecurity</key>
	<dict>
		<key>NSAllowsArbitraryLoads</key>
		<true/>
		<key>NSExceptionDomains</key>
		<dict>
			<key>mcext.zumigo.com</key>
			<dict>
				<key>NSExceptionAllowsInsecureHTTPLoads</key>
				<true/>
				<key>NSIncludesSubdomains</key>
				<true/>
			</dict>
			<key>passport.airtel.in</key>
			<dict>
				<key>NSExceptionAllowsInsecureHTTPLoads</key>
				<true/>
				<key>NSIncludesSubdomains</key>
				<true/>
			</dict>
			<key>partnerapi.jio.com</key>
			<dict>
                		<key>NSExceptionAllowsInsecureHTTPLoads</key>
                		<true/>
                		<key>NSIncludesSubdomains</key>
                		<true/>
            		</dict>
		</dict>
	</dict>
   

SDK Initialization

let bureauObj = BureauAuth.Builder()
          .setClientId(clientId: "e72a4414-a416-4872-8eea-6b51d6cd96e1")
          .build()
            
     //Other Options in builder are
        //setTimeout - total timeout in seconds
        //setCallBackUrl
        //mode - sandbox and production

Usage

let response = bureauObj.makeAuthCall(mobile: "", correlationId: "")

If makeAuthCall() method returns 'True' you can go ahead and wait for the callback from Bureau servers or poll the userinfo API. For an example SDK usage, please take a look here

Minimum iOS Version

iOS 13.0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published