SimpleOAuth2 0.1.5

SimpleOAuth2 0.1.5

测试测试过
语言语言 Obj-CObjective C
许可协议 MIT
发布时间最新发布2019年7月

rbaumbachRyan Baumbach 维护。



  • 作者:
  • Ryan Baumbach

SimpleOAuth2 Bitrise Cocoapod Version Cocoapod 平台 Carthage 兼容 许可协议

一个简单的 OAuth2 辅助库

将 SimpleOAuth2 添加到您的项目中

Cocoapods

CocoaPods 是将 SimpleOAuth2 添加到项目的推荐方式。

  1. 在 Podfile 中添加 SimpleOAuth2:pod 'SimpleOAuth2'
  2. 通过运行 pod install 来安装套件(套件)。
  3. 使用 #import <SimpleOAuth2/SimpleOAuth2.h> 将SimpleOAuth2添加到您的文件中。

Carthage

  1. 在Cartfile中添加 github "rbaumbach/SimpleOAuth2"
  2. 按照指示添加动态框架到您的目标Follow the directions

从Github克隆

  1. 从github克隆存储库并直接复制文件,或者将其添加为git子模块。
  2. 将“源”目录中的所有文件添加到项目中(以及Podfile中列出的依赖项)。

工具

  • 使用SimpleOAuth2AuthenticationManager对OAuth2客户端进行认证。
  • NSURLRequest+SimpleOAuth2类别提供了一个辅助方法,用于从API中的NSURLRequest获取授权代码。它还有一个方法来构建带有可选权限范围的web登录请求。如果不需要权限范围,请传入nil。

测试

此项目已配置为使用 fastlane 运行spec。

首先,进入项目目录并运行setup.sh脚本来安装必要的gem和CocoaPods。

$ ./setup.sh

然后使用fastlane在命令行上运行所有spec。

$ bundle exec fastlane specs

版本历史

版本历史可以在发布页面找到。

建议、请求和反馈

感谢您考察SimpleOAuth2以满足您的OAuth2需求。任何反馈都可以发送到:[email protected]