Giter Club home page Giter Club logo

Comments (6)

yordis avatar yordis commented on September 27, 2024 5

#191 I should merge that one before accepting the PR, it was passing before!

😢 My apologies folks, you live you learn!

from ueberauth.

FelixFortis avatar FelixFortis commented on September 27, 2024

My provider is defined, but I am still getting the error in my test:
Providers in IEx:

Ueberauth.init([otp_app: :my_app])
#=>
[
  {{"/auth/edm", "GET"},
   {Ueberauth.Strategy.EDM, :run_request,
    %{
      callback_methods: ["GET"],
      callback_params: nil,
      callback_path: "/auth/edm/callback",
      callback_port: nil,
      callback_scheme: nil,
      callback_url: nil,
      options: [],
      request_path: "/auth/edm",
      request_port: nil,
      request_scheme: nil,
      strategy: Ueberauth.Strategy.EDM,
      strategy_name: :edm
    }}},
  {{"/auth/edm/callback", "GET"},
   {Ueberauth.Strategy.EDM, :run_callback,
    %{
      callback_methods: ["GET"],
      callback_params: nil,
      callback_path: "/auth/edm/callback",
      callback_port: nil,
      callback_scheme: nil,
      callback_url: nil,
      options: [],
      request_path: "/auth/edm",
      request_port: nil,
      request_scheme: nil,
      strategy: Ueberauth.Strategy.EDM,
      strategy_name: :edm
    }}}
]

Test:

describe "logout/2" do
    test "clears the session and redirects to sign-in", %{conn: conn} do
      use_cassette "discovery_url" do
        conn =
          conn
          |> sign_in_user("[email protected]")
          |> delete("/auth/edm")

        assert get_session(conn) == %{}

        assert redirected_to(conn, 302) ==
                 "https://localhost:4443/openid/v1/end_session?post_logout_redirect_uri=http%3A%2F%2Flocalhost%3A4002%2Fadmin"
      end
    end
  end

Failure:

** (Ueberauth.NoProviderError) Provider auth/edm was not found
   code: |> delete("/auth/edm")
   stacktrace:
     (ueberauth 0.10.6) lib/ueberauth.ex:303: Ueberauth.call/2

from ueberauth.

yordis avatar yordis commented on September 27, 2024

@wkirschbaum I am gonna retire the version, it was not intended to break changes. My apologies!

Related to #193

cc: @Hajto

from ueberauth.

yordis avatar yordis commented on September 27, 2024

I would like to add a test case to replicate the issue, but also,

It is tricky the existing situation about #193 and #173

It comes down to "what should Ueberauth expect people to do?", I am open to suggestions here.

from ueberauth.

nathanalderson avatar nathanalderson commented on September 27, 2024

I think you need to publish a version with the rollback in addition to retiring the release. Retiring the release doesn't seem to stop mix deps from pulling it in if there's no newer version.

from ueberauth.

yordis avatar yordis commented on September 27, 2024

uuufff I thought I forgot about it, but it is marked as "retired" thou

Screenshot 2024-01-02 at 11 54 41 AM

from ueberauth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.