cordova-plugin-sso
What ?
If you use this plugin, you can be available for realizing SSO (Single Sign On) at Twitter, Facebook and LINE
Install
This plugin is using CocoaPods. Before install this plugin, please install CocoaPods
$ gem install cocoapods
$ pod setup
and Install
$ cordova plugin add cordova-plugin-sso --variable TWITTER_KEY=XXXX --variable TWITTER_SECRET=XXXX
And add config.xml below code
<!-- Google signin iOS--> <!-- Google signin Android-->
this plugin
Service Settings
LINE
- To get Signiture, you execute below code
$ keytool -exportcert -alias androiddebugkey -keystore .keystore | openssl sha1 -binary | openssl md5
for iOS
To get client id & reversed client id, you have to register your project to Google firebase console.
https://developers.google.com/identity/sign-in/ios/sdk/
As regster your appliction, you get GoogleService-Info.plist.
You can see client id & reversed client id on the text editor.
for Android
https://developers.google.com/mobile/add?platform=android&cntapi=signin
When you regster your appliction, you have to set the SHA1 fingerprint.
keytool -exportcert -keystore <path-to-debug-or-production-keystore> -list -v -alias <alias-name>
If your project is only debug, only you have to do is entering below code on the console.
keytool -exportcert -keystore ~/.android/debug.keystore -list -v
Usage
Available Service
- Line
Login Example
if windowsso ssotwitter;
Available Parameter
Every service has below parameters
- name
- userId
- token
- image
Optional parameters below
Logout
If you have been logined once, the accessToken was saved in the device. So if you want to get the Token, profile, or etc.. from the beginning, you have to execute 'logout' method.
if windowsso ssotwitter;
UPDATING
0.2.1 (only iOS update)
iOS
-
Using cocoapods
-
Updating all iOS SDK (Twitter Facebook LINE)
- TwitterKit: 3.4.0
- FBSDKLoginKit: 4.38
- LineSDKSwift: 5.0
-
Using NotificationCenter and Removing app delegat
-
remove Google signin
Android
- remove Google signin
0.2.2
Google sign in (android and ios)
0.2.3
remove dependency of cordova plugin cocoapods
0.2.4
bugfix facebook login