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 https://blog.runscope.com/posts/understanding-oauth-2-and-openid-connect
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

armanm
I know zero downtime deployment can mean different things depending on your application and what your users can tolerate so expectations ...
New
pietrofxq
I’ve bought the following books: Programming Elixir 1.6 Programming Phoenix 1.4 Programming Ecto Functional Web Development with Elixir...
New
lc0815
hello from a real frustrated newbe… I’m reading this article Full-Stack React With Phoenix (Chapter 3 | Introduction to Phoenix) by mich...
New
OmanF
In the attached screenshot (taken from an exercise in “Programming Elixir”) can be shown that BugReport is defined as a struct that, itse...
New
asfand
I already created an Elixir Phoenix app for learning purpose. In this app students of our collage will create profiles, and will chat wit...
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
Chawki
Hi,i’m new to elixir. i’m searching elixir small programs to try it out my self,Is any good resources out there? Thank you.
New
shansiddiqui94
Hello, I have an interview coming up and I seem to have forgotten important concepts of Elixir. So I was wondering if you guys know of a...
New
lgmfred
Hello, I want to get started with elixir today. Having learnt the basics of Erlang (my first ever language) and seen what it’s can do, I’...
New
younes-alouani
I'm studying Phoenix Framework but I want to understand basics first. Which book/mooc explains better the Design of Network-based Softwar...
New

Other popular topics Top

bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
malloryerik
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode. The solution seems to be, in a hyphena...
New
KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 35421 110
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
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
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 42633 214
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
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

We're in Beta

About us Mission Statement