https://github.com/raxityo/oauthswiftauthenticationservices
Use ASWebAuthenticationSession in OAuthSwift in iOS 12.0+
https://github.com/raxityo/oauthswiftauthenticationservices
Last synced: 2 days ago
JSON representation
Use ASWebAuthenticationSession in OAuthSwift in iOS 12.0+
- Host: GitHub
- URL: https://github.com/raxityo/oauthswiftauthenticationservices
- Owner: raxityo
- Created: 2020-08-26T19:45:41.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-07-20T18:43:18.000Z (almost 3 years ago)
- Last Synced: 2025-04-07T22:51:12.549Z (3 months ago)
- Language: Swift
- Size: 5.86 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OAuthSwiftAuthenticationServices
`OAuthSwiftASWebAuthenticationURLHandler` adds ability to use `ASWebAuthenticationSession` with [`OAuthSwift`](https://github.com/OAuthSwift/OAuthSwift) while targeting iOS 12.0+ and does not require defining an extra URI scheme in the application's `Info.plist` or handling the URI scheme in the app delegate.
## Installation:
Add this repository to `Xcode` using SPM.## Sample usage:
```swift
oauthSwift.authorizeURLHandler = ASWebAuthenticationSessionURLHandler(
callbackUrlScheme: "scheme",
presentationAnchor: view.window
)
```For more details of how to use `authorizeURLHandler`, see the docs in [`OAuthSwift`](https://github.com/OAuthSwift/OAuthSwift/tree/8e94866ddbb0b252be5483eac14fd3cd5065e0c9#handle-authorize-url)