kkdai / blog

This is blog comment repo for https://www.evanlin.com/
0 stars 0 forks source link

line-login/ #26

Closed kkdai closed 3 years ago

kkdai commented 3 years ago

[Golang][LINE][教學] 導入 LINE Login 到你的商業網站之中,並且加入官方帳號為好友

http://www.evanlin.com/line-login/

kkdai commented 3 years ago

comment written by Nam Lê Quý, created at 18 Apr 19 04:53 UTC,

My url when i click login: https://access.line.me/oaut...

I received error: 400 Bad Request. Invalid redirect_uri value. Check if it is registered in a LINE developers site.

I configed callback url in app settings: https://line-bot-login.hero... and heroku:

https://uploads.disquscdn.c...

kkdai commented 3 years ago

comment written by Nam Lê Quý, created at 18 Apr 19 06:21 UTC,

hello

kkdai commented 3 years ago

comment written by Nam Lê Quý, created at 18 Apr 19 06:28 UTC,

I have config parameters:
https://uploads.disquscdn.c...

and Callback URL: https://line-bot-login.herokuapp.com/auth

My url when i click login: https://access.line.me/oauth2/v2.1/authorize?client_id=1566108530&nounce=WmFvR1dXV08%3D&prompt=consent&redirect_uri=https%3A%2F%2Fline-bot-login.herokuapp.com%2F%2Fauth&response_type=code&scope=profile+openid&state=bVlSaEdwVEU%3D

But I received error:
https://uploads.disquscdn.c...

Please help me, thank you so much!!

kkdai commented 3 years ago

comment written by Nam Lê Quý, created at 18 Apr 19 06:29 UTC,

I have config parameters:
https://uploads.disquscdn.c...

and Callback URL: https://line-bot-login.herokuapp.com/auth

My url when i click login: https://access.line.me/oauth2/v2.1/authorize?client_id=1566108530&nounce=WmFvR1dXV08%3D&prompt=consent&redirect_uri=https%3A%2F%2Fline-bot-login.herokuapp.com%2F%2Fauth&response_type=code&scope=profile+openid&state=bVlSaEdwVEU%3D

But I received error:
https://uploads.disquscdn.c...

Please help me, thank you so much!!

kkdai commented 3 years ago

comment written by Nam Lê Quý, created at 18 Apr 19 06:37 UTC,

I have config parameters:
https://uploads.disquscdn.c...

and Callback URL: https://line-bot-login.herokuapp.com/auth

My url when i click login: https://access.line.me/oauth2/v2.1/authorize?client_id=1566108530&nounce=WmFvR1dXV08%3D&prompt=consent&redirect_uri=https%3A%2F%2Fline-bot-login.herokuapp.com%2F%2Fauth&response_type=code&scope=profile+openid&state=bVlSaEdwVEU%3D

But I received error:
https://uploads.disquscdn.c...

Log in heroku:
https://uploads.disquscdn.c...

Please help me, thank you so much!!

kkdai commented 3 years ago

comment written by Nam Lê Quý, created at 18 Apr 19 07:01 UTC,

LINECORP_PLATFORM_SERVERURL should be https://test-api-1234.herok...
Note that the "/" at the end is redundant