Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you suggest making the button to initiate the login? #36

Open
mathieujobin opened this issue Dec 27, 2021 · 0 comments
Open

How do you suggest making the button to initiate the login? #36

mathieujobin opened this issue Dec 27, 2021 · 0 comments

Comments

@mathieujobin
Copy link

it would be useful if the doc included an example, or the gem had an helper to create a sign-in button.

this is what I am doing thus far

<div style="text-align: center;">
  <%= button_to 'Sign in via Line', "https://access.line.me/oauth2/v2.1/authorize",
                id: 'button_line', params: {
                  response_type: 'code',
                  client_id: ENV['LINE_CHANNEL_ID'],
                  redirect_uri: ENV['LINE_CALLBACK_URL'],
                  state: SecureRandom.hex(16),
                  nonce: SecureRandom.hex(16),
                  scope: "profile openid"
                } %>
</div>

but I am getting a 405 Method Not allowed from Line, I don't know why yet...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant