https://github.com/clsung/line-oauth2-helper
Helper to generate LINE JSON Web Token (JWT) for LINE OAuth2 v2.1
https://github.com/clsung/line-oauth2-helper
go golang golang-tools line-bot linebot
Last synced: 5 months ago
JSON representation
Helper to generate LINE JSON Web Token (JWT) for LINE OAuth2 v2.1
- Host: GitHub
- URL: https://github.com/clsung/line-oauth2-helper
- Owner: clsung
- License: apache-2.0
- Created: 2020-04-19T07:59:15.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-21T13:17:38.000Z (about 6 years ago)
- Last Synced: 2025-10-01T05:27:56.935Z (8 months ago)
- Topics: go, golang, golang-tools, line-bot, linebot
- Language: Go
- Homepage:
- Size: 21.5 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# line-oauth2-helper
[](https://travis-ci.org/clsung/line-oauth2-helper)
[](https://codecov.io/gh/clsung/line-oauth2-helper)
[](http://godoc.org/github.com/clsung/line-oauth2-helper)
[](https://goreportcard.com/report/github.com/clsung/line-oauth2-helper)
## Introduction
Helper to [generate LINE JSON Web Token (JWT)](https://developers.line.biz/en/docs/messaging-api/generate-json-web-token/) 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}`