TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Aug 2015 |
Maintained by Hernan Zalazar.
Depends on: | |
googleplus-ios-sdk | ~> 1.7.1 |
Lock/Core | ~> 1.11 |
Auth0 is an authentication broker that supports social identity providers as well as enterprise identity providers such as Active Directory, LDAP, Google Apps and Salesforce.
Lock-GooglePlus helps you integrate native Login with Google+ iOS SDK and Lock
iOS 7+
The Lock-GooglePlus is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "Lock-GooglePlus", "~> 1.0"
Then in your project's Info.plist
file register a custom URL Type using your app's bundle identifier. For more information please check Google+ Getting Started Guide.
Just create a new instance of A0GooglePlusAuthenticator
A0GooglePlusAuthenticator *googlePlus = [A0GooglePlusAuthenticator newAuthenticatorWithClientId:@"G+_CLIENT_ID"];
let googlePlus = A0GooglePlusAuthenticator.newAuthenticatorWithClientId("G+_CLIENT_ID")
The G+ client id can be obtained from Google's API Dashboard, for more info please check this guide
and register it with your instance of A0Lock
A0Lock *lock = //Get your A0Lock instance
[lock registerAuthenticators:@[googlePlus]];
let lock:A0Lock = //Get your A0Lock instance
lock.registerAuthenticators([googlePlus])
A good place to create and register
A0GooglePlusAuthenticator
is theAppDelegate.m
orAppDelegate.swift
files.
+ (A0GooglePlusAuthenticator *)newAuthenticatorWithClientId:(NSString *)clientId;
Create a new 'A0GooglePlusAuthenticator' using a G+ client identifier
A0GooglePlusAuthenticator *googlePlus = [A0GooglePlusAuthenticator newAuthenticatorWithClientId:@"G+_CLIENT_ID"];
let googlePlus = A0GooglePlusAuthenticator.newAuthenticatorWithClientId("G+_CLIENT_ID")
+ (A0GooglePlusAuthenticator *)newAuthenticatorWithClientId:(NSString *)clientId andScopes:(NSArray *)scopes;
Create a new 'A0GooglePlusAuthenticator' with a G+ client identifier and a list of scopes for G+ authentication
A0GooglePlusAuthenticator *googlePlus = [A0GooglePlusAuthenticator newAuthenticatorWithClientId:@"G+_CLIENT_ID" andScopes:@[@"profile"]];
let googlePlus = A0GooglePlusAuthenticator.newAuthenticatorWithClientId("G+_CLIENT_ID", andScopes:["profile"])
If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.
Auth0 helps you to:
Auth0
Lock-GooglePlus is available under the MIT license. See the LICENSE file for more info.