{"id":23524334,"url":"https://github.com/devboidesigns/linkedin-signin-swiftui","last_synced_at":"2025-05-14T06:16:04.450Z","repository":{"id":243559471,"uuid":"812755932","full_name":"DevboiDesigns/LinkedIn-SignIn-SwiftUI","owner":"DevboiDesigns","description":"** deprecating ** ","archived":false,"fork":false,"pushed_at":"2024-12-04T18:50:23.000Z","size":110,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-25T18:15:24.222Z","etag":null,"topics":["linkedin","signin","signup-ui","swfitui","swiftpackagemanager"],"latest_commit_sha":null,"homepage":"https://github.com/DevboiDesigns/LinkedIn.SignIn-SPM","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DevboiDesigns.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-09T19:38:02.000Z","updated_at":"2024-12-06T10:51:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"0332fcaf-44df-4ad0-86e6-047e87a642b2","html_url":"https://github.com/DevboiDesigns/LinkedIn-SignIn-SwiftUI","commit_stats":null,"previous_names":["devboidesigns/linkedin-signin","devboidesigns/linkedin-signin-swiftui"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevboiDesigns%2FLinkedIn-SignIn-SwiftUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevboiDesigns%2FLinkedIn-SignIn-SwiftUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevboiDesigns%2FLinkedIn-SignIn-SwiftUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevboiDesigns%2FLinkedIn-SignIn-SwiftUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevboiDesigns","download_url":"https://codeload.github.com/DevboiDesigns/LinkedIn-SignIn-SwiftUI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239217101,"owners_count":19601593,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["linkedin","signin","signup-ui","swfitui","swiftpackagemanager"],"created_at":"2024-12-25T18:15:29.580Z","updated_at":"2025-02-17T00:51:52.100Z","avatar_url":"https://github.com/DevboiDesigns.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swift Package Manager for LinkedIn Sign In\n\nThis Swift package provides a streamlined way to integrate LinkedIn Sign-In functionality into your iOS applications. It handles the OAuth2 authentication flow, allowing users to log in with their LinkedIn credentials and retrieve an access token for further API interactions.\n\n## Features\n\n- Easy integration with LinkedIn OAuth2 authentication.\n- Customizable login view with support for loading indicators.\n- Handles authorization, token exchange, and error handling.\n- Provides a simple API for initiating the login process and retrieving the access token.\n\n- Originally created by [Serhii Londar](https://github.com/serhii-londar/LinkedInSignIn), I just put it into a swift package\n\n## Installation\n\n1. Install the package via Swift Package Manager:\n\n```swift\n.package(url: \"https://github.com/DevboiDesigns/LinkedIn.SignIn-SPM\", .upToNextMajor(from: \"1.2.0\"))\n```\n\n2. Import the package in your project:\n\n```swift\nimport LinkedIn_SignIn\n```\n\n### Usage\n\n    1. Set up your LinkedIn app on the [LinkedIn](https://developer.linkedin.com) Developer Portal.\n\n    2. Create a LinkedInConfig object with your LinkedIn credentials:\n\n```swift\nlet linkedinCredentilas = [\n    linkedInKey: \"YOUR_LINKEDIN_KEY\",\n    linkedInSecret: \"YOUR_LINKEDIN_SECRET\",\n    redirectURL: \"YOUR_REDIRECT_URL\"\n]\n```\n\n3. Initialize the LinkedinHelper and start the login process:\n   Login proces - Opens a web view to sign and get access token, token can be used via the LinkedIn SignIn [API](https://developer.linkedin.com)\n\n```swift\nlet linkedInConfig = LinkedInConfig(linkedInKey: linkedinCredentilas[\"linkedInKey\"]!, linkedInSecret: linkedinCredentilas[\"linkedInSecret\"]!, redirectURL: linkedinCredentilas[\"redirectURL\"]!)\nlet linkedInHelper = LinkedinHelper(linkedInConfig: linkedInConfig)\nlinkedInHelper.login(from: getRootViewController(), completion: { (accessToken) in\n // DO STUFF\n}\n```\n\n4. Implement the getRootViewController function to get the root view controller:\n\n```swift\n static public func getRootViewController() -\u003e UIViewController {\n        guard let screen = UIApplication.shared.connectedScenes.first as? UIWindowScene else { return .init() }\n        guard let root = screen.windows.first?.rootViewController else { return .init() }\n        return root\n    }\n```\n\n---\n\n\u003cimg src=\"img/signin.PNG\"  height=\"600\"\u003e\n\n---\n\n# License\n\nLinkedInSignIn is available under the MIT license. See the [LICENSE](LICENSE) file for more info.\n\n## Star on GitHub 🤩\n\nIf you like this tool please take a moment to\n[star it on GitHub](https://github.com/devboidesigns/LinkedIn-SignIn-SwiftUI#start-of-content).\n\n[![GitHub stars](https://img.shields.io/github/stars/devboidesigns/LinkedIn-SignIn-SwiftUI?style=social)](https://github.com/devboidesigns/LinkedIn-SignIn-SwiftUI#start-of-content)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevboidesigns%2Flinkedin-signin-swiftui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevboidesigns%2Flinkedin-signin-swiftui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevboidesigns%2Flinkedin-signin-swiftui/lists"}