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
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
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.
Popular in Chat/Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








