@tona0516/yconnect-cli
v1.1.1
Published
CLI for Yahoo! Identity Federation
Downloads
3
Readme
yconnect-cli
Overview
CLI for Yahoo! Identity Federation. (UNOFFICIAL) https://developer.yahoo.co.jp/yconnect/v2/
Getting start
$ npm i -g @tona0516/yconnect-cli
$ yconnect-cli help
Preparation
- Create Client ID (ref. https://e.developer.yahoo.co.jp/register).
- Add http://localhost:3000/front to callback URL of the Client ID above.
Examples
Client-side Client ID
Get tokens
- simple (getting tokens with Authorization Code Flow)
$ yconnect-cli auth -c <Client ID>
- with options (getting profile data and require user consent)
$ yconnect-cli auth -c <Client ID> --scope openid profile --prompt consent
Get userinfo
$ yconnect-cli userinfo -a <Access Token>
Refresh access token
$ yconnect-cli refresh -c <Client ID> -r <Refresh Token>
Server-side Client ID
Add --client-secret <Client Secret>
in the case of auth
and refresh
subcommand.
Dependencies
- Node.js
- 18.12.1 or later