{"id":13507453,"url":"https://github.com/ueberauth/ueberauth_slack","last_synced_at":"2025-12-12T00:24:05.716Z","repository":{"id":2370646,"uuid":"46292413","full_name":"ueberauth/ueberauth_slack","owner":"ueberauth","description":"Slack OAuth2 Strategy for Überauth","archived":false,"fork":false,"pushed_at":"2022-05-07T16:56:45.000Z","size":65,"stargazers_count":22,"open_issues_count":2,"forks_count":33,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-07-03T22:42:12.155Z","etag":null,"topics":["oauth","oauth2","slack","strategy","ueberauth","ueberauth-strategies"],"latest_commit_sha":null,"homepage":"","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/ueberauth.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2015-11-16T18:01:56.000Z","updated_at":"2025-02-24T05:22:05.000Z","dependencies_parsed_at":"2022-07-24T22:16:12.112Z","dependency_job_id":null,"html_url":"https://github.com/ueberauth/ueberauth_slack","commit_stats":null,"previous_names":["hassox/ueberauth_slack"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/ueberauth/ueberauth_slack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ueberauth%2Fueberauth_slack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ueberauth%2Fueberauth_slack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ueberauth%2Fueberauth_slack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ueberauth%2Fueberauth_slack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ueberauth","download_url":"https://codeload.github.com/ueberauth/ueberauth_slack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ueberauth%2Fueberauth_slack/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265238171,"owners_count":23732579,"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":["oauth","oauth2","slack","strategy","ueberauth","ueberauth-strategies"],"created_at":"2024-08-01T02:00:34.032Z","updated_at":"2025-12-12T00:24:05.664Z","avatar_url":"https://github.com/ueberauth.png","language":"Elixir","funding_links":[],"categories":["Authentication"],"sub_categories":[],"readme":"# Überauth Slack\n\n\u003e Slack OAuth2 strategy for Überauth.\n\n## Installation\n\n1. Setup your application at [Slack API](https://api.slack.com).\n\n1. Add `:ueberauth_slack` to your list of dependencies in `mix.exs`:\n\n    ```elixir\n    def deps do\n      [{:ueberauth_slack, \"~\u003e 0.7\"}]\n    end\n    ```\n\n1. Add the strategy to your applications:\n\n    ```elixir\n    def application do\n      [applications: [:ueberauth_slack]]\n    end\n    ```\n\n1. Add Slack to your Überauth configuration:\n\n    ```elixir\n    config :ueberauth, Ueberauth,\n      providers: [\n        slack: {Ueberauth.Strategy.Slack, []}\n      ]\n    ```\n\n    You can optionally restrict authentication by providing your team ID. [Find your Slack team ID here](https://api.slack.com/methods/auth.test/test). Note that this is NOT your team's Slack domain name!\n\n    ```elixir\n    config :ueberauth, Ueberauth,\n      providers: [\n        slack: {Ueberauth.Strategy.Slack, [team: \"0ABCDEF\"]}\n      ]\n    ```\n\n1.  Update your provider configuration:\n\n    ```elixir\n    config :ueberauth, Ueberauth.Strategy.Slack.OAuth,\n      client_id: System.get_env(\"SLACK_CLIENT_ID\"),\n      client_secret: System.get_env(\"SLACK_CLIENT_SECRET\")\n    ```\n\n1.  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\n1.  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\n1. 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 initiate the request through:\n\n    /auth/slack\n\nOr with options:\n\n    /auth/slack?scope=users:read\n\nBy default the requested scope is \"users:read\". 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    slack: {Ueberauth.Strategy.Slack, [default_scope: \"users:read,users:write\"]}\n  ]\n```\n\n## License\n\nPlease see [LICENSE](https://github.com/ueberauth/ueberauth_slack/blob/master/LICENSE) for licensing details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fueberauth%2Fueberauth_slack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fueberauth%2Fueberauth_slack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fueberauth%2Fueberauth_slack/lists"}