LINE login is not possible with Rails5

Asked 1 years ago, Updated 1 years ago, 53 views

I'm a beginner at Rails.LINE login is not possible with Rails 5.
The implementation method was followed by the following site.
https://techdatebook.hatenablog.com/entry/rails_line

I deployed LINE login to heroku because it is not http-enabled.

Conditions:
Click the LINE Login link to Enter a description of the image here
The screen appears as

The heroku log at this time is as follows:

2018-05-04T21:58:03.817089+00:00 heroku [router]: at=info method=GET 
path="/users/auth/line" host=frozen-plains-60626.herokuapp.com 
request_id = 6326ae36-2a05-4dcd-8d87-aae95c3b872d fwd = "118.103.63.152" 
dyno=web.1connect=1ms service=4ms status=302 bytes=1288protocol=https
2018-05-04T21:58:03.814586 + 00:00 app [web.1]: I, [2018-05- 
04 T 21:58:03.814467#4]INFO--: [6326ae36-2a05-4dcd-8d87-aae95c3b872d] 
Started GET "/users/auth/line" for 118.103.63.152 at 2018-05-04 21:58:03+0000
2018-05-04T21:58:03.814915 + 00:00 app [web.1]: I, [2018-05 - 
04 T 21:58:03.814850#4] INFO -- omniauth: (line) Request phase initiated.
2018-05-04T21:58:04.121453+00:00 app [web.1]:I, [2018-05-04T21:58:04.121330#4]INFO--:[72f4aa05-a199-4eca-963a-87cb9f430bf8] Started GET"/users/auth/line" for 118.103.63.152 at 2018-05-0421:58:04 0000+
2018-05-04T21:58:04.121881 + 00:00 app [web.1]: I, [2018-05-04T21:58:04.121811#4] INFO --oniauth: (line) Request phase initiated.
2018-05-04T21:58:04.124748+00:00 heroku [router]: at=info method=GET path="/users/auth/line" host=frozen-plains-60626.herokuapp.com request_id=72f4aa05-a199-4eca-963a-87cb9f430bf8fwd="118.103.63.152" connect=1snemous=1

Environment:
ruby —2.3.1
rails: 5.1.6

I'd appreciate it if you could give me some advice.
Thank you for your cooperation.

ruby-on-rails ruby line

2022-09-30 19:54

1 Answers

As you can see on the screen, client_id is
when executing the request. It doesn't seem to be set as a parameter.
Please refer to the LINE login documentation below to find the required parameters. Try changing it to use everything.

https://developers.line.me/ja/docs/line-login/web/integrate-line-login/


2022-09-30 19:54

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.