Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/serhii-londar/LinkedInSignIn
Simple view controller to log in and retrieve an access token from LinkedIn.
https://github.com/serhii-londar/LinkedInSignIn
hacktoberfest ios linkedin login signin swift viewcontroller
Last synced: 3 months ago
JSON representation
Simple view controller to log in and retrieve an access token from LinkedIn.
- Host: GitHub
- URL: https://github.com/serhii-londar/LinkedInSignIn
- Owner: serhii-londar
- License: mit
- Created: 2017-11-16T22:59:55.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-11-02T16:15:22.000Z (about 3 years ago)
- Last Synced: 2024-07-25T21:33:17.803Z (3 months ago)
- Topics: hacktoberfest, ios, linkedin, login, signin, swift, viewcontroller
- Language: Swift
- Homepage:
- Size: 1.09 MB
- Stars: 36
- Watchers: 5
- Forks: 12
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - LinkedInSignIn - Simple view controller to login and retrieve access token from LinkedIn. (Authentication)
- awesome-swift - LinkedInSignIn - Simple view controller to log in and retrieve an access token from LinkedIn. (Libs / Authentication)
- awesome-swift - LinkedInSignIn - Simple view controller to log in and retrieve an access token from LinkedIn. (Libs / Authentication)
- fucking-awesome-swift - LinkedInSignIn - Simple view controller to log in and retrieve an access token from LinkedIn. (Libs / Authentication)
- awesome-ios-star - LinkedInSignIn - Simple view controller to login and retrieve access token from LinkedIn. (Authentication)
- fucking-awesome-ios - LinkedInSignIn - Simple view controller to login and retrieve access token from LinkedIn. (Authentication)
- fucking-awesome-ios - LinkedInSignIn - Simple view controller to login and retrieve access token from LinkedIn. (Authentication)
- awesome-swift - LinkedInSignIn - Simple view controller to log in and retrieve an access token from LinkedIn. ` 📝 a year ago ` (Authentication [🔝](#readme))
README
# LinkedInSignIn
[![CI Status](http://img.shields.io/travis/serhii-londar/LinkedInSignIn.svg?style=flat)](https://travis-ci.org/serhii-londar/LinkedInSignIn)
[![Version](https://img.shields.io/cocoapods/v/LinkedInSignIn.svg?style=flat)](http://cocoapods.org/pods/LinkedInSignIn)
[![License](https://img.shields.io/cocoapods/l/LinkedInSignIn.svg?style=flat)](http://cocoapods.org/pods/LinkedInSignIn)
[![Platform](https://img.shields.io/cocoapods/p/LinkedInSignIn.svg?style=flat)](http://cocoapods.org/pods/LinkedInSignIn)## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
Also you need to setup app on [LinkedIn](https://www.linkedin.com/developer/apps) and fill in dictionary with your app credetials:
```swift
let linkedinCredentilas = [
"linkedInKey": "",
"linkedInSecret": "",
"redirectURL": ""
]```
Login proces is simple as:
```swift
let linkedInConfig = LinkedInConfig(linkedInKey: linkedinCredentilas["linkedInKey"]!, linkedInSecret: linkedinCredentilas["linkedInSecret"]!, redirectURL: linkedinCredentilas["redirectURL"]!)
let linkedInHelper = LinkedinHelper(linkedInConfig: linkedInConfig)
linkedInHelper.login(from: self, completion: { (accessToken) in
let alertVC = UIAlertController(title: "Success", message: "Your access token is : \(accessToken)!", preferredStyle: .alert)
alertVC.addAction(UIAlertAction(title: "Ok", style: .default, handler: { _ in
alertVC.dismiss(animated: true, completion: nil)
}))
self.present(alertVC, animated: true, completion: nil)
}) { error in
print(error.localizedDescription)
}
```
## Installation
LinkedInSignIn is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'LinkedInSignIn'
```## Author
Github: [Serhii Londar](https://github.com/serhii-londar)
Email: [[email protected]](mailto:[email protected])
## License
LinkedInSignIn is available under the MIT license. See the LICENSE file for more info.