wolfiton

wolfiton

OpenID with absinthe any examples or hints

Hi everyone,

Is there any example how to implement an absinthe social login on the following providers:

gmail
github
facebook

without a library?

if not what solutions are available for social login in absinthe?

Also found this that helped me realise the differences between oauth2 and openid good read Blogs | BlazeMeter by Perforce
Thanks for the help and guidance in advance

Most Liked

benwilson512

benwilson512

Author of Craft GraphQL APIs in Elixir with Absinthe

Why?

The means by which you authenticate aren’t really within the scope of what Absinthe handles, and isn’t super relevant to GraphQL. We use Uberuath / UberauthGoogle to handle our google single sign on. Users sign on via google, and then we issue them an auth token, and they make follow on GraphQL requests with that auth token just like any other user.

The actual back and forth that happens with oauth / openid doesn’t really involve GraphQL / Absinthe at all.

benwilson512

benwilson512

Author of Craft GraphQL APIs in Elixir with Absinthe

They do not integrate with Absinthe at all. Use the examples in the ueberauth guides, it’s what I did. The oauth flow requires certain endpoints to exist that follow a certain spec, and that spec has nothing to do with absinthe. You do the outh2 flow as you would with any other API, and then at the end when you have some kind of auth token you use that with your GraphQL api just as you would an auth token you created via some other means.

Where Next?

Popular in Chat/Questions Top

Allyedge
So, I want to get an Elixir book, but don’t know which one to get. Both Programming Elixir 1.6 and Elixir in Action looks interesting, b...
New
satoru
I’m working on the “Bob” exercise on the Elixir Track in Exercism. I am testing for uppercase letter with this simple check: c in ?A..?Z...
New
nur
https://e.planaria.network Build a NoSQL DB, Build a Relational SQL Database, Build a Graph Database, Build a File System, Build a Bitc...
New
aswinmohanme
I recently finished the Udemy course on Elixir and Phoenix and I am thinking about using it for the next project. But I am stuck as how t...
New
boddhisattva
Greetings everyone, At my current workplace we’re evaluating different ways of building a microservices architecture for some parts rela...
New
Kielo
Hi, I run a language learning blog and would like to learn how to code so I can create an app to help English speakers learn French. I ...
New
g5becks
Hello everyone. So I just got done reading all of the introduction to Elixir and working through the basics of the language. I am not new...
New
gouvermxt
I just finished the “Learn Functional Programming with Elixir (Pragprog)” book. I have 5+ years of experience with Ruby/Rails, my goal is...
New
stevensonmt
I’d like to provide my review of the Elixir Course module from Groxio. I have some criticisms but I’d like to start with the positives. ...
New
maqbool
what books/Resources do you recommend to learn about distributed system(theory)?
New

Other popular topics Top

marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New
AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New
chrismccord
As promised, the first release candidate of Phoenix 1.3.0 is out! This release focuses on code generators with improved project structure...
New
Nvim
Anybody knows a comprehensive comparison of Django and Phoenix, thanks for the help. Where are they similar? Where do they differ the m...
New
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New
Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New

We're in Beta

About us Mission Statement