Comments (6)
#191 I should merge that one before accepting the PR, it was passing before!
😢 My apologies folks, you live you learn!
from ueberauth.
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.
@wkirschbaum I am gonna retire the version, it was not intended to break changes. My apologies!
Related to #193
cc: @Hajto
from ueberauth.
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.
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.
uuufff I thought I forgot about it, but it is marked as "retired" thou
from ueberauth.
Related Issues (20)
- OAuth2 needs new maintainers HOT 4
- State nonce cookie should properly be signed HOT 2
- How can run Ueberauth plug directly? HOT 3
- Custom `callback_port` and `callback_scheme` not used HOT 1
- Callback URL not mounted right when router has nested paths
- Can't set strategy options at runtime HOT 2
- Line Login v2.1 update request which I've done HOT 4
- Gracefully handle unknown providers HOT 10
- callback_port config compiled into plug at compile time HOT 10
- App.Auth.AuthController.request/2 is undefined or private HOT 1
- minor: mix package versions are out of date
- New hex.pm release? HOT 1
- Incorrect callback_url when using Bandit.PhoenixAdapter
- put_session successful, but get_session failed HOT 1
- function MyAppWeb.OAuthController.request/2 is undefined or private HOT 1
- Support for nonces HOT 1
- FR: Support multiple usages of the same strategy in config HOT 13
- Incomplete docs to configure pipeline and check that user is authenticated HOT 3
- Latest version is retired HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ueberauth.