https://github.com/logto-io/swift
Build authentication and authorization with Logto Swift SDK.
https://github.com/logto-io/swift
authentication authorization ios jwt logto mfa multi-tenant oauth2 oidc saml sdk sso swift
Last synced: 12 days ago
JSON representation
Build authentication and authorization with Logto Swift SDK.
- Host: GitHub
- URL: https://github.com/logto-io/swift
- Owner: logto-io
- License: mit
- Created: 2022-01-01T07:40:50.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-01-21T09:27:57.000Z (3 months ago)
- Last Synced: 2025-03-25T06:23:02.304Z (28 days ago)
- Topics: authentication, authorization, ios, jwt, logto, mfa, multi-tenant, oauth2, oidc, saml, sdk, sso, swift
- Language: Swift
- Homepage:
- Size: 347 KB
- Stars: 7
- Watchers: 5
- Forks: 3
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Logto Swift SDKs
The monorepo for [Logto](https://github.com/logto-io) SDKs and social plugins written in Swift. heck out our [docs](https://docs.logto.io/sdk/swift/) for more information.
## Installation
### Swift Package Manager
Since Xcode 11, you can [directly import a swift package](https://developer.apple.com/documentation/swift_packages/adding_package_dependencies_to_your_app) w/o any additional tool. Use the following URL to add Logto SDKs as a dependency:
```bash
https://github.com/logto-io/swift.git
```### Carthage
Carthage [needs a `xcodeproj` file to build](https://github.com/Carthage/Carthage/issues/1226#issuecomment-290931385), but `swift package generate-xcodeproj` will report a failure since we are using binary targets for native social plugins. We will try to find a workaround later.
### CocoaPods
CocoaPods [does not support local dependency](https://github.com/CocoaPods/CocoaPods/issues/3276) and monorepo, thus it's hard to create a `.podspec` for this repo.
## Products
| Name | Description |
|---|---|
| Logto | Logto swift core. |
| LogtoClient | Logto swift client. |
| LogtoSocialPlugin | Social plugin foundation for LogtoClient. |
| LogtoSocialPluginWeb | Social plugin for OAuth-like web IdPs. |
| LogtoSocialPluginAlipay | Social plugin for Alipay sign in. |
| LogtoSocialPluginWechat | Social plugin for WeChat sign in. |In most cases, you only need to import `LogtoClient`, which includes `Logto` and `LogtoSocialPluginWeb` under the hood.
The related plugin is required when you integrate a native connector.
## Resources
[](https://logto.io/)
[](https://docs.logto.io/)
[](https://discord.gg/UEPaF3j5e6)