FriendsOfFlarum #asking how to put the login button infront of page?
FriendsOfFlarum OAuth
djemyjenab this extension doesn't move the location of the login button. It stays in the header.
You mean you're trying to put it somewhere else on the (home)page?
clarkwinkelmann yes Sir.
- Edited
@FriendsOfFlarum Hello, I configured the facebook application to log in to flarum but it stops at this login screen with my facebook information and it doesn't stay there I add the terms of use and it gives this error (Oops! Something went wrong. Please reload the page and try again.). Why ?
1.2.3
- [GitLab] Url for the applications has been changed by @Justman10000 in FriendsOfFlarum/oauth40
1.2.4
- feat: add
Provider--provider_name
class to settings for improved customization by @IanM in FriendsOfFlarum/oauth48
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?
- Edited
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
:
- https://extiverse.com/extension/ianm/oauth-amazon
- https://extiverse.com/extension/blomstra/oauth-apple
- https://extiverse.com/extension/blomstra/oauth-slack
- https://extiverse.com/extension/ianm/oauth-line
- https://github.com/imorland/flarum-ext-oauth-microsoft
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!
- Edited
Umutcan this is expected.
https://github.com/FriendsOfFlarum/oauth/blob/master/js/src/forum/index.js#L20
Google branding does not allow inline icon
1.3.0
Adds linked account status to your user profile page
- view at a glance which accounts you've signed into Flarum with
- Remove a link
- Connect additional accounts to your forum account
Updating
composer update fof/oauth
php flarum cache:clear
[deleted]
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!
- Edited
https://codeberg.org/
(using Gitea)
Would be a nice addition to this. It supports Oauth2, so it should be relatively easy.