Having issues with GitHub (404 not found) and Google (400 missing request / invalid parameter: client_id)
Am I missing something?
Having issues with GitHub (404 not found) and Google (400 missing request / invalid parameter: client_id)
Am I missing something?
logixworx I just enabled both of these on my test forum, as well as logging in here on discuss using GitHub
, and don't see an issue with them at the moment.
There was an update released yesterday for the underlying GitHub
provider, which resolves an issue obtaining the email address during registration thephpleague/oauth2-github20. It might be worth updating your dependencies just in case, but I don't think you'd be seeing a 404
due to this.
composer require fof/oauth -W
As for the Google 400
have you correctly entered the client_id
in the extension settings for Google oauth?
I think this extension should include "Sign in with Steam" and "Sign in with Twitch" features. In this way, we can attract the attention of the gamers.
Apart from that, Telegram is getting very popular. It would be great to have it supported on his Telegram.
Umutcan over the time since this extension was released there have been many requests for additional provider support. Including many different OAuth providers in the one package for convenience on the one hand is appealing, but at the same time could be considered bloat, as well as introducing additional complexity towards the maintenance of the extension.
As it stands, some of the most requested/popular auth providers are included directly in the extension. We've also made it possible improvements to allow additional providers to be added via seperate extensions to this extension.
For example these are just some of the extensions which add providers directly into fof/oauth
:
There could well be more, but these are the ones I'm personally aware of. Of course, other OAuth extensions exist too, that provide OAuth with X
login, but don't reuse the fof/oauth
framework. I would suggest that those extensions that do not do this consider refactoring, as their complexity can be greatly reduced by using the framework provided already, as well as keeping a uniform implementation for all auth providers.
Creating an auth extension for Twitch
and Steam
using the fof/oauth
framework is pretty straight forward. As you say, an implemention for Steam
already exists, but outside of the framework. Twitch
could be created perhaps with a couple of hours work (going on a cursory look at the Twitch requirements).
Telegram on the other hand is also possible, but would require a little more time spent on developing a solution for Flarum.
Perhaps your suggestions here could be separated out into the three providers and created under the Proposals tag, perhaps even with a bounty to encourage their development?
Umutcan to further expand on my thinking, I've just created the Twitch
OAuth extension to prove just how easy it is to use the fof/oauth
framework
https://discuss.flarum.org/d/31955-login-with-twitch
Enjoy!
Umutcan this is expected.
https://github.com/FriendsOfFlarum/oauth/blob/master/js/src/forum/index.js#L20
Google branding does not allow inline icon
Adds linked account status to your user profile page
composer update fof/oauth
php flarum cache:clear
Thanks!!!
Great update!
The text is a little difficult to read on my forum - is there anyway to change this - or maybe the background colour?
Thanks!
https://codeberg.org/
(using Gitea)
Would be a nice addition to this. It supports Oauth2, so it should be relatively easy.
I'm trying this extensions on flarum.cloud and it doesn't work with either Facebook or Google.
With Facebook, it redirects to FB and there's an "unknown error".
With Google, there's another error signaling a missing "client_id".
In my case is not working well, after make a successful login with Google, the redirect is going to https://peruguitar.com/auth/google awalys reapting the login form again.
please add ya.ru vk.com mail.ru
when a user tries to unlink their socials there is an error they are reciving.
"This provider does not belong to you."
how to solve this?