Helper to generate LINE JSON Web Token (JWT) for LINE OAuth2 v2.1.
% go get github.com/clsung/line-oauth2-helper/cmd/line_jwt
% line_jwt -file ${LINE_PRIVATEKEY_FILE} -channel_id ${CHANNEL_ID}
or
% line_jwt -channel_id ${CHANNEL_ID} < ${LINE_PRIVATEKEY_FILE}
Pull the image:
% docker pull clsung/line-oauth2-helper:stable
then run the following
% docker run -ti -p 8080:8080 clsung/line-oauth2-helper:stable
and connect to http://localhost:8080/
% docker run -i clsung/line-oauth2-helper:stable line_jwt -channel_id ${CHANNEL_ID} < ${LINE_PRIVATEKEY_FILE}