{"id":15732694,"url":"https://github.com/nsweeting/ueberauth_weebly","last_synced_at":"2025-03-31T03:42:35.347Z","repository":{"id":62430606,"uuid":"171717867","full_name":"nsweeting/ueberauth_weebly","owner":"nsweeting","description":"An Ueberauth strategy for authenticating your application with Weebly.","archived":false,"fork":false,"pushed_at":"2019-02-20T17:36:09.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-05T17:50:50.060Z","etag":null,"topics":["elixir","oauth","oauth2","ueberauth","weebly"],"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/nsweeting.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":"2019-02-20T17:22:27.000Z","updated_at":"2019-02-20T17:36:11.000Z","dependencies_parsed_at":"2022-11-01T20:19:33.313Z","dependency_job_id":null,"html_url":"https://github.com/nsweeting/ueberauth_weebly","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/nsweeting%2Fueberauth_weebly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsweeting%2Fueberauth_weebly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsweeting%2Fueberauth_weebly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsweeting%2Fueberauth_weebly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nsweeting","download_url":"https://codeload.github.com/nsweeting/ueberauth_weebly/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246413230,"owners_count":20773053,"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","oauth","oauth2","ueberauth","weebly"],"created_at":"2024-10-04T00:21:43.066Z","updated_at":"2025-03-31T03:42:35.327Z","avatar_url":"https://github.com/nsweeting.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Überauth Weebly\n\nWeebly OAuth2 strategy for Überauth.\n\n## Installation\n\n1. Setup your application at [Weebly](https://dev.weebly.com/).\n\n2. Add `:ueberauth_weebly` to your list of dependencies in `mix.exs`:\n\n    ```elixir\n    def deps do\n      [{:ueberauth_weebly, \"~\u003e 0.1\"}]\n    end\n    ```\n\n3. Add Weebly to your Überauth configuration:\n\n    ```elixir\n    config :ueberauth, Ueberauth,\n      providers: [\n        weebly: {Ueberauth.Strategy.Weebly, []}\n      ]\n    ```\n\n4. Update your provider configuration:\n\n    ```elixir\n    config :ueberauth, Ueberauth.Strategy.Weebly.OAuth,\n      client_id: System.get_env(\"WEEBLY_API_KEY\"),\n      client_secret: System.get_env(\"WEEBLY_SECRET\")\n    ```\n\n5. If you haven't already, create a pipeline and setup routes for your callback handler:\n\n    ```elixir\n    pipeline :auth do\n      Ueberauth.plug \"/auth\"\n    end\n\n    scope \"/auth\" do\n      pipe_through [:browser, :auth]\n\n      get \"/:provider/callback\", AuthController, :callback\n    end\n    ```\n\n6. Create an endpoint for the callback where you will handle the `Ueberauth.Auth` struct:\n\n    ```elixir\n    defmodule MyApp.AuthController do\n      use MyApp.Web, :controller\n\n      def callback_phase(%{ assigns: %{ ueberauth_failure: fails } } = conn, _params) do\n        # do things with the failure\n      end\n\n      def callback_phase(%{ assigns: %{ ueberauth_auth: auth } } = conn, params) do\n        # do things with the auth\n      end\n    end\n    ```\n\n7. Your controller needs to implement callbacks to deal with `Ueberauth.Auth` and `Ueberauth.Failure` responses.\n\nFor an example implementation see the [Überauth Example](https://github.com/ueberauth/ueberauth_example) application.\n\n## Calling\n\nDepending on the configured url you can initial the request through:\n\n    /auth/weebly\n\nOr with options:\n\n    /auth/weebly?user_id=1234567\u0026site_id=1234567\u0026scope=read:site\n\nBy default the requested scope is \"read:site,write:site\". Scope can be configured either explicitly as a `scope` query value on the request path or in your configuration:\n\n```elixir\nconfig :ueberauth, Ueberauth,\n  providers: [\n    weebly: { Ueberauth.Strategy.Weebly, [default_scope: \"read:site,write:site\"] }\n  ]\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsweeting%2Fueberauth_weebly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnsweeting%2Fueberauth_weebly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsweeting%2Fueberauth_weebly/lists"}