@tona0516/yconnect-cli

1.1.1 • Public • Published

yconnect-cli

GitHub Workflow Status GitHub npm

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

  1. Create Client ID (ref. https://e.developer.yahoo.co.jp/register).
  2. 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

Readme

Keywords

none

Package Sidebar

Install

npm i @tona0516/yconnect-cli

Weekly Downloads

1

Version

1.1.1

License

MIT

Unpacked Size

131 kB

Total Files

65

Last publish

Collaborators

  • tona0516