{"id":23524289,"url":"https://github.com/devboidesigns/linkedinsignin-swiftui","last_synced_at":"2025-08-30T09:16:07.062Z","repository":{"id":266716394,"uuid":"899136933","full_name":"DevboiDesigns/LinkedInSignIn-SwiftUI","owner":"DevboiDesigns","description":"This 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.","archived":false,"fork":false,"pushed_at":"2024-12-05T17:46:37.000Z","size":105,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-18T19:36:06.345Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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,"zenodo":null}},"created_at":"2024-12-05T17:30:35.000Z","updated_at":"2025-01-03T20:24:18.000Z","dependencies_parsed_at":"2024-12-05T22:08:14.625Z","dependency_job_id":null,"html_url":"https://github.com/DevboiDesigns/LinkedInSignIn-SwiftUI","commit_stats":null,"previous_names":["devboidesigns/linkedinsignin-swiftui"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/DevboiDesigns/LinkedInSignIn-SwiftUI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevboiDesigns%2FLinkedInSignIn-SwiftUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevboiDesigns%2FLinkedInSignIn-SwiftUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevboiDesigns%2FLinkedInSignIn-SwiftUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevboiDesigns%2FLinkedInSignIn-SwiftUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevboiDesigns","download_url":"https://codeload.github.com/DevboiDesigns/LinkedInSignIn-SwiftUI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevboiDesigns%2FLinkedInSignIn-SwiftUI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272828892,"owners_count":25000111,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-12-25T18:15:27.819Z","updated_at":"2025-08-30T09:16:07.019Z","avatar_url":"https://github.com/DevboiDesigns.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swift Package Manager for LinkedIn Sign In\n\nThis SwiftUI 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## Installation\n\n1. Install the package via Swift Package Manager:\n\n```swift\n.package(url: \"https://github.com/DevboiDesigns/LinkedInSignIn-SwiftUI.git\", .upToNextMajor(from: \"1.2.0\"))\n```\n\n2. Import the package in your project:\n\n```swift\nimport LinkedInSignIn\n```\n\n### Usage\n\n- [LinkedIn Developer Portal](https://developer.linkedin.com)\n\n  1. Set up your LinkedIn app on the 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. 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\n4. 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\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/LinkedInSignIn-SwiftUI).\n\n[![GitHub stars](https://img.shields.io/github/stars/devboidesigns/LinkedInSignIn-SwiftUI?style=social)](https://github.com/devboidesigns/LinkedInSignIn-SwiftUI#start-of-content)\n\n\u003csup\u003eOriginally created by [Serhii Londar](https://github.com/serhii-londar/LinkedInSignIn), I just put it into a swift package\u003c/sup\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevboidesigns%2Flinkedinsignin-swiftui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevboidesigns%2Flinkedinsignin-swiftui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevboidesigns%2Flinkedinsignin-swiftui/lists"}