Configuring Patreon integration with Discourse

plugins

(Vinoth Kannan) #42

As it says, you must fill it only if you are using Patreon creator account to login in Discourse through “Login with Patreon” feature. In that case it is the value of local Discourse account username. Else you can skip it.

It is needed because Patreon creator access token will be changed whenever you login.


(Chris Klugewicz) #43

I’m having a problem with the plugin’s default icons breaking my site’s SSL … they were initially set to an http:// link, which I subsequently changed to https:// … however, every time a profile pic shows up, the browser indicates mixed security. I’ve gone back into the plugin settings and verified that it now shows https:// in both locations for the Patreon logos. I suspect it’s a caching issue, but for the life of me, I can’t figure out how to fix it.


(Vinoth Kannan) #44

Are you seeing force_https warning in your admin console? If yes then that is the issue. At least you didn’t enabled force_https setting at the time when you received the mixed content warning.


(Chris Klugewicz) #45

I don’t see any warnings at all in the admin console. I don’t have force_https enabled … I tried enabling that, but it didn’t seem to make any difference – I still got the mixed content warning from the browser, no matter what the force_https option was set to.


(Vinoth Kannan) #46

If you are using the latest version of Discourse then you should have the warning in admin dashboard when force_https not enabled while using SSL.

When first sync from the Patreon plugin executed it will create a default group with Patreon flair URL. At that time if you didn’t enabled either SSL or force_https then http version of the URL will be used for flair. We won’t update that URL after that. Even if you enabled both SSL and force_https in future. So you have to update it manually.

It is not a bug. Anyway I can fix the problem by using the protocol-relative URL in the initial sync. But AFAIK it is an anti-pattern. Also our URL validation method won’t allow both relative and protocol-relative URLs.


(Chris Klugewicz) #47

My provider is on 1.9.0 … SSL is set on and forced in their control panel, and everything except those Patreon icons is in fact being delivered via SSL.

How do I update it manually to fix the URL to use the https:// version of the URL, in that case?

I tried disabling the plugin then re-enabling it, but no joy. I also resynced the Patreon data, but nothing changed.

I’ve set the force_https option on now, fwiw. :slight_smile:


(Vinoth Kannan) #48

You can update the flair URL in the default Patreon group admin page in the URL /admin/groups/custom

Yes. It won’t help. Maybe syncing after deleting the default Patreon group can help.


(Chris Klugewicz) #49

Ha! I fixed it! Your last message was the answer – in the settings for the Patreon group, there’s another URL link to the flair – it was showing ‘http://’ so I changed it to ‘https://’ and voila! It works!!! No more mixed content!

THANK YOU SO MUCH!!!


(Jose C Gomez) #51

When I click Update Patreon Data & Sync Groups nothing Happens

If I look at SideKiq I see that PatreonSyncPatrons toGroups Failed

Do I have to have Patrons in order for the Syn To Work? I’ve enabled Force HTTPS and the Tokens job does not fail on SideKiq


(Jose C Gomez) #52

Ok I gave it a little while and now the SideKiq Job worked,and the Update from the UI shows the message. However it does not appear to bring in any custom groups or badges.


(Rafael dos Santos Silva) #53

Like I said:

:wink::wink:


(Jose C Gomez) #54

So now I have a patron, that patron has an account in discourse. Tried sync still nothing. Seeing this errpr in the logs


(Vinoth Kannan) #55

That particular error is not related the syncing process. It will be raised when a Patron register his account on your forum. And it looks like one of the group you specified in the filters is not found (maybe deleted) at the time of the error. You must check all available filters.


(Jose C Gomez) #56

So I never got a Patron group automatically created. Should I make one?


(Vinoth Kannan) #57

Both default group and filter will be created automatically in the first sync process. If you can’t find any existing default filter do the manual sync again. If the problem persist then you must have an issue. Either in configuration or the code.


(Jose C Gomez) #58

I can see Rewards
image
But in Groups I don’t see Patron, and if I click Update Patron Data & Sync Groups I get


But nothing changes.
All the settings in configuration are correct, I’m getting a “successful” sync according to the logs in SIdeKiq, and I do see the Rewards populate correct, I can also authenticate with Patreon…
Any other ideas?


(Jose C Gomez) #59

I created a group manually and added it to the filter and it worked got the Group auto assigned on next sync


(Vinoth Kannan) #60

Great. So it is syncing Patrons successfully after you created the filter manually. Did you ever added/deleted a filter before? If yes then that must be the issue and I will push a fix for that.


(Jose C Gomez) #61

I did not, but it is working now.

Is there a badge query available somewhere? So I can create a badge for this particular group?

Thanks!


(Rafael dos Santos Silva) #62