没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
OAuth2 使用Swift 5.0编写的适用于macOS , iOS和tvOS的OAuth2框架。 (带有数据加载器示例) OAuth2需要Xcode 10.2,内置框架可以在OS X 10.11或iOS 8及更高版本上使用。 很高兴接受拉取请求,请参阅 迅捷版 由于Swift语言不断发展,因此我采用了一种镜像Swift版本的版本控制方案:框架版本的前两位始终是该库兼容的Swift版本,请参见 。 与全新Swift版本兼容的代码可在单独命名的功能分支上找到。 用法 要在自己的代码中使用OAuth2,请在源文件中import OAuth2 。 在OAuth2中,存在。 该库支持所有这些库,请确保您为用例和授权服务器使用了正确的库。 以下是典型的代码授予流程用于演示的目的。 除了实例化不同的子类和使用不同的客户端设置之外,其他流程的步骤几乎相同。 还是行不通? 请参阅。 1.使用设置字典实例化OAuth2 在此示例中,您将为Github构建iOS客户端,因此以下代码将位于您的视图控制器中的某个位置,也许是应用程序委托。 let oauth2 = OAuth2Co
资源推荐
资源详情
资源评论
收起资源包目录
OAuth2-master.zip (79个子文件)
OAuth2-master
.travis.yml 160B
.gitmodules 93B
.swiftpm
xcode
package.xcworkspace
contents.xcworkspacedata 135B
xcshareddata
IDEWorkspaceChecks.plist 238B
.jazzy.yaml 2KB
.swift-version 4B
OAuth2.xcworkspace
contents.xcworkspacedata 156B
xcshareddata
IDEWorkspaceChecks.plist 238B
assets
step-linking.png 74KB
step-adding.png 21KB
SwiftKeychain
CONTRIBUTORS.md 829B
Sources
OAuth2
OAuth2Module.swift 222B
DataLoader
OAuth2DataLoader.swift 7KB
OAuth2DataRequest.swift 1KB
OAuth2DataLoaderSessionTaskDelegate.swift 3KB
SwiftKeychain
Keychain.swift 43B
Flows
OAuth2CodeGrantBasicAuth.swift 2KB
OAuth2CodeGrantLinkedIn.swift 1KB
OAuth2CodeGrantAzure.swift 1KB
OAuth2PasswordGrant.swift 8KB
OAuth2.swift 16KB
OAuth2ClientCredentials.swift 3KB
OAuth2DynReg.swift 6KB
OAuth2CodeGrant.swift 5KB
OAuth2ClientCredentialsReddit.swift 2KB
OAuth2ImplicitGrant.swift 2KB
OAuth2CodeGrantNoTokenType.swift 981B
OAuth2ImplicitGrantWithQueryParams.swift 2KB
OAuth2CodeGrantFacebook.swift 1KB
macOS
OAuth2CustomAuthorizer+macOS.swift 3KB
OAuth2WebViewController+macOS.swift 10KB
OAuth2Authorizer+macOS.swift 6KB
tvOS
OAuth2CustomAuthorizer+tvOS.swift 2KB
OAuth2Authorizer+tvOS.swift 1KB
iOS
OAuth2WebViewController+iOS.swift 8KB
OAuth2CustomAuthorizer+iOS.swift 2KB
OAuth2Authorizer+iOS.swift 12KB
Base
OAuth2RequestPerformer.swift 2KB
OAuth2Logger.swift 4KB
OAuth2CustomAuthorizerUI.swift 1KB
OAuth2Error.swift 12KB
OAuth2KeychainAccount.swift 2KB
OAuth2Requestable.swift 7KB
OAuth2AuthorizerUI.swift 2KB
OAuth2AuthRequest.swift 9KB
OAuth2DebugURLSessionDelegate.swift 2KB
OAuth2AuthConfig.swift 3KB
OAuth2Securable.swift 6KB
OAuth2Response.swift 3KB
OAuth2ClientConfig.swift 9KB
OAuth2Base.swift 18KB
extensions.swift 4KB
Package.swift 2KB
CONTRIBUTING.md 531B
Gemfile 299B
Gemfile.lock 2KB
.gitignore 112B
OAuth2.xcodeproj
project.xcworkspace
contents.xcworkspacedata 151B
xcshareddata
OAuth2.xccheckout 1KB
project.pbxproj 67KB
xcshareddata
xcschemes
OAuth2tvOS.xcscheme 3KB
OAuth2macOS.xcscheme 4KB
OAuth2iOS.xcscheme 3KB
CHANGELOG.md 10KB
Tests
BaseTests
OAuth2Tests.swift 7KB
OAuth2AuthRequestTests.swift 5KB
DataLoaderTests
OAuth2DataLoaderTests.swift 3KB
FlowTests
OAuth2ImplicitGrantTests.swift 7KB
OAuth2PasswordGrantTests.swift 4KB
OAuth2CodeGrantTests.swift 18KB
OAuth2ClientCredentialsTests.swift 5KB
OAuth2DynRegTests.swift 4KB
OAuth2RefreshTokenTests.swift 5KB
Info.plist 733B
Info.plist 898B
README.md 24KB
p2.OAuth2.podspec 2KB
LICENSE.txt 556B
generate-docs.sh 217B
共 79 条
- 1
资源评论
晔晔匠
- 粉丝: 23
- 资源: 4650
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功