Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/raxityo/oauthswiftauthenticationservices
Use ASWebAuthenticationSession in OAuthSwift in iOS 12.0+
https://github.com/raxityo/oauthswiftauthenticationservices
Last synced: about 1 month 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 (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-20T18:43:18.000Z (over 2 years ago)
- Last Synced: 2024-10-14T07:10:01.463Z (3 months ago)
- Language: Swift
- Size: 5.86 KB
- Stars: 5
- Watchers: 2
- 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)