Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

line-oauth2-helper

Build Status codecov GoDoc Go Report Card

Introduction

Helper to generate LINE JSON Web Token (JWT) for LINE OAuth2 v2.1.

Install

% go get github.com/clsung/line-oauth2-helper/cmd/line_jwt

Usage

Command line

% line_jwt -file ${LINE_PRIVATEKEY_FILE} -channel_id ${CHANNEL_ID}

or

% line_jwt -channel_id ${CHANNEL_ID} < ${LINE_PRIVATEKEY_FILE}

Docker

Pull the image:

% docker pull clsung/line-oauth2-helper:stable

Web version

then run the following

% docker run -ti -p 8080:8080 clsung/line-oauth2-helper:stable

and connect to http://localhost:8080/

Command line

% docker run -i clsung/line-oauth2-helper:stable line_jwt -channel_id ${CHANNEL_ID} < ${LINE_PRIVATEKEY_FILE}