line-login-go

command module
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 8 Imported by: 0

README

LINE loing in Go: Sample code for LINE login in Go

GoDocgoreportcard.com Go

Refer LINE Developer Document "Integrating LINE Login with your web app" for more detail.

This sample code implement how to integrate LINE login to your website in Go. You can use this sample code to integrate LINE login in your web application. Also this also provide link a chatbot service when user use LINE login. Refer "Linking a bot with your LINE Login channel".

Deploy on Heroku

Deploy

Before deploy this to your Heroku, you will need complete as follows:

  • Create a LINE login channel. Remember it's channel ID and channel secret.
  • Crete a LINE Message API channel. Remember it's channel secret and token.
  • Link the chatbot to the LINE login channel

Run In Docker

docker build -t line-login-go:latest .

docker run \
-e LINECORP_PLATFORM_CHATBOT_CHANNELSECRET=your_secret \
-e LINECORP_PLATFORM_CHATBOT_CHANNELTOKEN=your_token \
-e LINECORP_PLATFORM_SERVERURL=http://localhost:8080 \
-e LINECORP_PLATFORM_CHANNEL_CHANNELID=your_channel_id \
-e LINECORP_PLATFORM_CHANNEL_CHANNELSECRET=your_channel_secret \
-e PORT=8080 \
-p 8080:8080 \
line-login-go

License

MIT License

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL