Discord, Google and Microsoft login, is oAuth2 enough?

Hi everybody,

I want to insert a Discord, Google and Microsoft login to my forum and I wonder if oAuth2 is enough to insert this?

Plugin for Google login:

Plugin for Microsoft login:

Plugin for Discord login:

I see that there are one plugin for oauth2:

Do I need all four plugins in order to setup login for Discord, Google and Microsoft?

Bonus question: I also wonder if Facebook and ActivityPub is enabled through oauth2?

Not a plugin, it’s out of the box.

Facebook is also out of the box, as is Google login.

Look at your site settings in “Login” section.

3 Likes

Oh I see but in order for these to work I need to setup oAuth2?

Do I need the oAuth2 plugin or can I do it by just following the install steps of the Discord, Google and Facebook integrations?

No, for the ones I’ve listed they are all out of the box.

You will, however, have to set up the project services in Discord, Google and Facebook, however, on their respective developer consoles and copy the credentials into your SiteSettings.

1 Like

I see thank you. I have not yet started the company so it looks like Facebook is out of the picture for now since they require business verification.

Discord and Google should be fine I hope. And possibly Microsoft through the plugin.

Is both plugins for Microsoft and Activitypub needed to activate login for these platforms? On Activityhub I am mainly interested in Mastodon

Have you read the documentation? Post on the plugin Topic?

1 Like

It seems like the plugin for Microsoft is needed in order to active oauth2.

Regarding activityhub I think that oauth2 can be used for Mastodon, but in order to use it through activitityhub I think you might need to use the plugin.

Those are two very different things.

ActivityPub is a protocol how messages etc. are travelling between servers that know how to use it. It has nothing to do with how someone can log in to your forum.

You can use oauth with a mastodon server. Which one of thousands servers you would use? Not mine, for sure. I mean there is not just one mastodon server, neither one login credentials. You can’t use (now anyway) any common Discourse login either.

Oh I was thinking that I could use Mastodon to make my forum more visible for others. In that case I need to contact the server owner on Mastodon if they would like my forum content there?

I am assuming then that Mastodon users will not be able to login to a Discourse forum but rather have the content show on their timeline on Mastodon.

I see that Activityhub is using oauth, thats why I was asking regarding Activityhub and which plugins I need.

Best regards
Olle

You can do that. In the meaning if someone would like to follow your topics using ActivityPub they can do that, if you use ActivityPub plugin. But that is not limited to Mastodon. It can be WordPress or Pixelfed too (and in the future a Friendica too, I hope). But those users don’t login to your forum. You are sending your feed to them using ActivityPub.

But it doesn’t increase your visibility per se. It increases possibilities to follow and participate with your forum if and when someone knows it is there and know what account to follow.

So, different things.

So in order for it to show on Mastodon I need to install the Activitypub plugin and setup an account on Mastodon which will cross-post my forums posts there which in turn people with Mastodon can follow and interact with?

No. All you need is using ActivityPub plugin. Then who ever from (almost whole wide) Fediverse can follow your categories (and/or tags) if they know username of those so called actors — it is in similar form than email address, like @some-name@forum.example.com.

So you as an admin don’t need mastodon or any other fediverse account, because your forum is then one server in fediverse, and sends information thru ActivityPub if someone is asking it.

So you may want to be active in some Mastodon server and share your content. There is no algorithm forcing content to everyone. It is like email, or a mailing list — you must know someone’s address before you can send, or subcsribe to a list before you can receive anything.

As said, ActivityPub is a protocol how to deliver data thru Feviverse, nothing more.

So lets say my forum is about pets. If I add the categories/tags pets, dogs, cats to my forum on Discourse will Fediverse automatically catch that if I install the ActivityPub plugin?

And a user searches for pets, is there then a chance that they might see my content there?

We are already strongly off-topic. You asked about SSO logins, and ActivityPub is not related to that in any way, just as little as the protocol through which emails are sent or what an RSS feed is. Similarly, the entire Fediverse, including Mastodon, is based on the idea that you only need to join one server. In other words, if you federate a category or tag, a Mastodon user doesn’t even know where the traffic is coming from in principle; it just appears in their feed if they have subscribed to the traffic moving through the ActivityPub you offer.

So, we have moved from login options to the basics of federated systems.

Searches do not work that way. Most likely, the user’s Mastodon server doesn’t even know about the existence of your forum. The situation changes on that server when someone there starts following a category or tag from your forum, but they must first know the identifier your forum uses through other routes, or you can think of it as an address.

After that, the information begins to spread slowly, and more quickly by the actions of someone following your forum to their own followers if they share it further.

Finding becomes easier when Discourse learns to use hashtags (and agrees to communicate with Friendica, which is the Fediverse’s equivalent to Facebook), but we’re not quite there yet.

So it’s about two things:

  • ActivityPub is like RSS and doesn’t do anything by itself unless someone knows how to read it
  • the entire Fediverse is based on the idea that those elsewhere never need to come to your forum

Spend some time here. It may help to understand the very basics of what federation and Mastodon are, and what they aren’t.

1 Like