dwyl / elixir-auth-google-demo Goto Github PK
View Code? Open in Web Editor NEW⭐️ A basic example of using Google Auth in a Phoenix App.
Home Page: https://elixir-google-auth-demo.fly.dev/
License: GNU General Public License v2.0
⭐️ A basic example of using Google Auth in a Phoenix App.
Home Page: https://elixir-google-auth-demo.fly.dev/
License: GNU General Public License v2.0
@SimonLab thanks for merging the update PR #7 ✅
Annoyingly, the deploy doesn't work because the buildpack is incorrect (my fault):
https://dashboard.heroku.com/apps/elixir-auth-google-demo/activity/builds/3cb8e486-9ee9-4cbe-9014-b925f6b3eff5
-----> Checking Erlang and Elixir versions
Will use the following versions:
* Stack heroku-18
* Erlang 24.0
* Elixir v1.12.3
Sorry, Erlang '24.0' isn't supported yet or isn't formatted correctly. For a list of supported versions, please see https://github.com/HashNuke/heroku-buildpack-elixir#version-support
! Push rejected, failed to compile Elixir app.
! Push failed
Just checked https://github.com/HashNuke/heroku-buildpack-elixir-otp-builds/blob/master/otp-versions
and it appears the latest available version is 23.3.2
:
There is a PR to add OTP 24: HashNuke/heroku-buildpack-elixir-otp-builds#166 but it's sitting waiting ... ⏳
I can take a look at this in the evening. Need to do some "work work" now. ⏳
23.3.2
This should only take 2 mins but the lowest label we have is T25m
... see: dwyl/labels#99
With the release of elixir_auth_github
at 1.5.0
and Phoenix 1.6
we need to update this demo to confirm everything still works as expected.
Elixir
to 1.12.3
package.json
and unnecessary node.js dependencies! 🎉elixir_auth_github
to 1.5.0
📦Here's one we made earlier: dwyl/elixir-auth-github-demo#18
The demo app is currently working on heroku using "old" version: https://elixir-auth-google-demo.herokuapp.com/
I added a new branch to the demo
Annoyingly, while I'm trying to to update the dependency on auth_plug
in auth
: dwyl/auth#83 (comment)
I'm seeing this error:
no match of right hand side value: {:error, %HTTPoison.Error{id: nil, reason: {:options, {:sslv3, {:versions, [:"tlsv1.2", :"tlsv1.1", :tlsv1, :sslv3]}}}}}
I just confirmed that it's also an issue in this project/repo (elixir-auth-google-demo
),
so I'm fixing it here first as this is a much simpler demo app.
As noted in the auth
issue, I think updating the version of plug_cowboy
should do the trick:
elixir-auth-google-demo/mix.exs
Line 42 in 1ca2718
Heroku has kindly deleted our old demo app - that was consuming 0.0001 hours per month and basically cost them nothing ...
https://elixir-auth-google-demo.herokuapp.com/
So ...
The reason I'm opening this now is to help debug: dwyl/elixir-auth-google#83 💭
Which in turn will help ensure that our auth
is working correctly. 👌
Related to: dwyl/learn-heroku#52
At present this demo app uses:
elixir-auth-google-demo/mix.exs
Line 45 in ad1c5bf
Should we upgrade it to 1.7 RC2
?
Instructions to update would be similar to: dwyl/phoenix-chat-example#149
.then
we could also update the setup instructions as suggested by @ndrean in dwyl/elixir-auth-google#73 (comment) 💭
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.