{"id":13507450,"url":"https://github.com/alexfilatov/ueberauth_line","last_synced_at":"2025-04-13T06:33:55.250Z","repository":{"id":43109415,"uuid":"62493982","full_name":"alexfilatov/ueberauth_line","owner":"alexfilatov","description":"LINE strategy for Ueberauth","archived":false,"fork":false,"pushed_at":"2022-11-03T10:00:59.000Z","size":77,"stargazers_count":4,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T02:18:48.519Z","etag":null,"topics":["elixir","elixir-lang","line","messenger"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexfilatov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-03T11:40:56.000Z","updated_at":"2023-09-05T12:52:40.000Z","dependencies_parsed_at":"2023-01-20T22:47:28.559Z","dependency_job_id":null,"html_url":"https://github.com/alexfilatov/ueberauth_line","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexfilatov%2Fueberauth_line","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexfilatov%2Fueberauth_line/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexfilatov%2Fueberauth_line/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexfilatov%2Fueberauth_line/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexfilatov","download_url":"https://codeload.github.com/alexfilatov/ueberauth_line/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248674684,"owners_count":21143760,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elixir","elixir-lang","line","messenger"],"created_at":"2024-08-01T02:00:33.957Z","updated_at":"2025-04-13T06:33:55.226Z","avatar_url":"https://github.com/alexfilatov.png","language":"Elixir","funding_links":[],"categories":["Authentication"],"sub_categories":[],"readme":"# UeberauthLine [![Hex pm](https://img.shields.io/hexpm/v/ueberauth_line.svg?style=flat)](https://hex.pm/packages/ueberauth_line) [![hex.pm downloads](https://img.shields.io/hexpm/dt/ueberauth_line.svg?style=flat)](https://hex.pm/packages/ueberauth_line) ![CI Build](https://github.com/LucidModules/ueberauth_line/actions/workflows/elixir.yml/badge.svg)\n\n**An Uberauth strategy for LINE OAuth2 authentication.**\n\nInspired by [Ueberauth for Facebook](https://github.com/ueberauth/ueberauth_facebook)\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed as:\n\n  1. Add `ueberauth_line` to your list of dependencies in `mix.exs`:\n\n```elixir\n    def deps do\n      [{:ueberauth_line, \"~\u003e 0.1.2\"}]\n    end\n```\n\n  2. Ensure `ueberauth_line` is started before your application:\n\n```elixir\n    def application do\n      [applications: [:ueberauth_line]]\n    end\n```\n\n  3. Add Line to your Überauth configuration:\n\n```elixir\n    config :ueberauth, Ueberauth,\n      providers: [\n        line: {Ueberauth.Strategy.Line, []}\n      ]\n```\n  4.  Update your provider configuration:\n\n```elixir\n    config :ueberauth, Ueberauth.Strategy.Line.OAuth,\n      client_id: System.get_env(\"LINE_CLIENT_ID\"),\n      client_secret: System.get_env(\"LINE_CLIENT_SECRET\")\n```\n\n  5.  Include the Überauth plug in your controller:\n\n```elixir\n    defmodule MyApp.AuthController do\n      use MyApp.Web, :controller\n      plug Ueberauth\n      ...\n    end\n```\n\n  6.  Create the request and callback routes if you haven't already:\n\n```elixir\n    scope \"/auth\", MyApp do\n      pipe_through :browser\n\n      get \"/:provider\", AuthController, :request\n      get \"/:provider/callback\", AuthController, :callback\n    end\n```\n\n## Set up LINE Channel\n\n  Follow instructions here https://developers.line.me/line-login/overview\n\n\n## Side notes\nThis library uses Erlang `:crypto.strong_rand_bytes` for nonce and state generation. Make sure that `RAND_bytes` method from OpenSSL is available.\n\n## Testing\nA Cowboy Mock server is available for testing purposes.\nMany thanks to Sophie DeBenedetto for the great tutorial on [server mocking in Elixir](https://medium.com/flatiron-labs/rolling-your-own-mock-server-for-testing-in-elixir-2cdb5ccdd1a0).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexfilatov%2Fueberauth_line","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexfilatov%2Fueberauth_line","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexfilatov%2Fueberauth_line/lists"}