daisyconbv/oauth-examples
最新稳定版本:v1.0.0
Composer 安装命令:
composer require daisyconbv/oauth-examples
包简介
A list of Daisycon oAuth examples.
README 文档
README
This repository contains small example scripts for oAuth usage.
Javascript/Typescript
Note: both javascript and typescript examples assume you use a compiler like webpack
We also have an oauth client package available with cli support https://github.com/DaisyconBV/js-oauth-client
PHP
Even though you can see our examples here, we recommend you use the PHP League oAuth Client https://github.com/thephpleague/oauth2-client
For CLI there is a CLI client available.
Usage
php PHP/cli-client.php --clientId CLIENT_ID --clientSecret CLIENT_SECRET --outputFile tokens.json
You can then use the tokens in your code and refresh them using your own code
PowerShell
This is a small example for making an api call using OAuth in PowerShell.
Install-module -name PKCE
Install-Module -name JWTDetails
Add-Type -AssemblyName System.Web
Usage:
.\PowerShell\example.ps1
统计信息
- 总下载量: 505
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2023-03-03