Questions tagged [ueberauth]
18 questions
7
votes
1 answer
How to authenticate user using Ueberauth and Guardian in Phoenix framework
Is there any tutorial or help available which i can follow to authenticae users using Ueberauth and Guardian in Phoenix framework.
I have seen following post but it mostly talk about addict and passport libraries
How to implement user authentication…

Androider
- 2,884
- 5
- 28
- 47
6
votes
1 answer
How do you make a seperate signup callback for ueberauth identity
ueberauth_identity has an example of a single callback for both login and signup but this leads to bad error handling. Is there a way to make a separate signup callback?

Charles Han
- 772
- 1
- 8
- 21
3
votes
1 answer
Phoenix + Ueberauth + Google + Heroku : internal server error
I'm relatively new at Elixir and Phoenix (which is probably the reason I have no idea what's going on).
I'm trying to set up Ueberauth on a Phoenix app with Google authentication.
I followed the sample app…

Trevoke
- 4,115
- 1
- 27
- 48
2
votes
2 answers
Keep getting Cross-Site Request Forgery error using Ueberauth
I am using Phoenix version 1.3 and the UeberAuth "~> 0.6". I am currently receiving a CRSF error that I don't think should be happening, but I may well be making an error.
In my router.ex file, I have the following:
scope "/auth", DiscussWeb do
…

Mike Malloy
- 1,520
- 1
- 15
- 19
2
votes
4 answers
Elixir Phoenix setting and using environment variables
I have a phoenix app that is making an OAuth call to github. I want to store my secret keys as environment variables so I can keep them out of version control.
I have created a file called .env where I define my private key:
export…

Alex Fallenstedt
- 2,040
- 1
- 18
- 34
2
votes
2 answers
Compilation error on file web/controllers/auth_controller.ex undefined function plug/1
The Cryptic Error Message
While attempting to implement ueberauth for our project, we cam across a error message we had not seen before. (note this is not specific to ueberauth this error will be seen in any controller that fails to include the…

nelsonic
- 31,111
- 21
- 89
- 120
2
votes
1 answer
How to submit prompt=consent via ueberauth_google
When a user has already given consent for an app (e.g. when a user abandons account creation during an initial attempt, then tries again), Google will not re-prompt for consent unless prompt=consent is passed (see documentation). Without prompting…

Daniel
- 794
- 1
- 8
- 15
2
votes
0 answers
How to make Guardian detect token in a second app, system2system?
I cannot get an app to find the generated token of another app. Both apps (App1 and App2) live in an umbrella, and share the same config and secret-key.
I have my user authentication set up in sessions, the Guardian token is found through:
plug…

Martin
- 47
- 4
1
vote
2 answers
Problems with guardian - how generate access and refresh token in login
To invalidate JWTs, people use one of two methods
blacklist/whitelist (with guardian_db).
a refresh token (which allows regenerating access tokens) with a short expiring access token.
I dont want to use guardian_db in my project. So, how i …

Nuno_Coletiv
- 367
- 3
- 16
1
vote
0 answers
Guardian.Plug.sign_in/2 to session storage instead of cookies?
During authentication, Guardian.Plug.sign_in(conn, user) is storing session token in cookies by default. Let's say i have a field that tells if the user wants to be remembered or not. If not, how can i store session token in session storage (so it…

Razinar
- 727
- 3
- 13
- 21
1
vote
0 answers
module :unicode_util not available Phoenix/elixir
I was trying the Ueberauth library for GitHub login. In the login function, I'm getting an error saying that
"function :unicode_util.lowercase/1 is undefined (module :unicode_util
is not available)"
The code that I've used
defmodule…

Gijo Varghese
- 11,264
- 22
- 73
- 122
1
vote
2 answers
Two root pages; one for unauthenticated users, one for authenticated users
I was wondering how I could implement having two pages in the same root "/" using Phoenix? One for unauthenticated users, and one for authenticated users. Examples of use cases where this happens are LinkedIn and Facebook, where a login-page is…

Martin
- 47
- 4
1
vote
1 answer
Ueberauth plug fails to assign auth and failure to conn
I'm utilizing Ueberauth in a library I'm building to simplify the addition of authentication in Phoenix.
I've setup an example repo and you can see the code at in the v2 branch
I’m attempting to implement the Ueberauth Identity strategy right now.…

brittonjb
- 502
- 5
- 15
0
votes
1 answer
Elixir Phoenix 1.6 - trying to pass token to browser, function nil.id/0 is undefined or private
I am working on a Phoenix 1.6 app. I used Ueberauth for authenication via GitHub, which was working. I set up a channel to post topics and comments, which authenticated users can do. Next, I tried to add a user token for use in the channel. I…

Fruno
- 81
- 10
0
votes
0 answers
Why am I getting this error? Expected to find settings under `config nil, Ueberauth.Strategy.Auth0.OAuth`, got nil. Check your config.exs
I was following this tutorial https://auth0.com/blog/elixir-and-phoenix-tutorial-build-an-authenticated-app/#Our-Phoenix-application-skeleton and everything was working fine until I tried to run it with the auth enabled. Now I keep getting this…

quarterpi
- 833
- 1
- 6
- 13