{"id":22348749,"url":"https://github.com/svycal/ueberauth_stripe","last_synced_at":"2025-03-26T11:15:32.821Z","repository":{"id":58974723,"uuid":"426001888","full_name":"svycal/ueberauth_stripe","owner":"svycal","description":"Stripe OAuth2 Strategy for Überauth ","archived":false,"fork":false,"pushed_at":"2022-09-10T00:52:26.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-01T07:22:42.569Z","etag":null,"topics":["elixir","oauth2","stripe"],"latest_commit_sha":null,"homepage":"https://hexdocs.pm/ueberauth_stripe","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/svycal.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-08T21:38:34.000Z","updated_at":"2022-09-10T00:53:04.000Z","dependencies_parsed_at":"2022-09-23T09:33:03.032Z","dependency_job_id":null,"html_url":"https://github.com/svycal/ueberauth_stripe","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svycal%2Fueberauth_stripe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svycal%2Fueberauth_stripe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svycal%2Fueberauth_stripe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svycal%2Fueberauth_stripe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svycal","download_url":"https://codeload.github.com/svycal/ueberauth_stripe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245641437,"owners_count":20648644,"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","oauth2","stripe"],"created_at":"2024-12-04T11:06:22.794Z","updated_at":"2025-03-26T11:15:32.803Z","avatar_url":"https://github.com/svycal.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Überauth Stripe [![Hex Version](https://img.shields.io/hexpm/v/ueberauth_stripe.svg)](https://hex.pm/packages/ueberauth_stripe)\n\n\u003e Stripe OAuth2 strategy for Überauth.\n\n## Installation\n\n1. Setup your application in your Stripe extension settings.\n\n1. Add `:ueberauth_stripe` to your list of dependencies in `mix.exs`:\n\n    ```elixir\n    def deps do\n      [{:ueberauth_stripe, \"~\u003e 0.2.0\"}]\n    end\n    ```\n\n1. Add Stripe to your Überauth configuration:\n\n    ```elixir\n    config :ueberauth, Ueberauth,\n      providers: [\n        stripe: {Ueberauth.Strategy.Stripe, []}\n      ]\n    ```\n\n1.  Update your provider configuration:\n\n    Use that if you want to read client ID/secret from the environment\n    variables in the compile time:\n\n\n    ```elixir\n    config :ueberauth, Ueberauth.Strategy.Stripe.OAuth,\n      client_id: System.get_env(\"STRIPE_CLIENT_ID\"),\n      client_secret: System.get_env(\"STRIPE_CLIENT_SECRET\")\n    ```\n\n    Use that if you want to read client ID/secret from the environment\n    variables in the run time:\n\n    ```elixir\n    config :ueberauth, Ueberauth.Strategy.Stripe.OAuth,\n      client_id: {System, :get_env, [\"STRIPE_CLIENT_ID\"]},\n      client_secret: {System, :get_env, [\"STRIPE_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/stripe\n    \n## License\n\nPlease see [LICENSE](https://github.com/svycal/ueberauth_stripe/blob/main/LICENSE.md) for licensing details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvycal%2Fueberauth_stripe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvycal%2Fueberauth_stripe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvycal%2Fueberauth_stripe/lists"}