Comments (4)
@aef- PRs are welcome for new functionality 👍
from ueberauth.
I don't know wheter this is related, but I'm also working with a single page application and an elixir API.
I'm using https://github.com/sahat/satellizer to fire the popups on the single page, then POST
ing with code to the API. The result is an ueberauth error redirect_uri_mismatch
.
pry(6)> params
%{"clientId" => "...",
"code" => "4/vLOSfRQi-OK6B...",
"provider" => "google", "redirectUri" => "http://localhost:3333",
"state" => "....."}
pry(7)> fails
%Ueberauth.Failure{errors: [%Ueberauth.Failure.Error{message: nil,
message_key: "redirect_uri_mismatch"}], provider: :google,
strategy: Ueberauth.Strategy.Google}
I'm not sure how to continue, I'm pretty sure I've configured well the allowed redirect uris on google console.
from ueberauth.
Indeed, made a fork to implement this functionality and that worked for me.
config :ueberauth, Ueberauth,
providers: [
google: {Ueberauth.Strategy.Google, [
callback_methods: ["POST"],
callback_path: "/api/auth/google/callback",
callback_url: "http://localhost:3333" # Where my Brunch app is running
]}
]
Making a PR ASAP.
from ueberauth.
This has been merged into master. I'll release a new version later this evening, ideally with #28 included.
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 release breaks existing paths HOT 6
- 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.