I mean Discourse as an IdP for my own standalone program. I’m just not sure what the best way for linking things like a Riot Games ID since they don’t have an OAuth solution that is public yet. I know they just announced RSO but they haven’t given a date on that being publicly available.
Currently, for third-party applications to “verify” a Riot account it requires users to login to their League of Legends client and change a field under the settings tab. I was just trying to come up with a way of going from Discourse to the League API and then adding the custom profile field once it has been verified.
Here’s the part where the code comes in for reference. Basically, I’m then able to call the League API and see if the value of this code matches the one that they were instructed to use.
Also, I’m using a SAML login system for my Discourse since it ties into the rest of my website and was wanting to have a way of adding “verified” Discord usernames in a similar fashion. Again, I’m just not too sure how I would go about getting the logged in user on Discourse prompting an OAuth via Discord OAuth and then changing the value on Discourse’s end.
I hope that makes some sense and shows what I’m trying to accomplish. If you still need more information about what I’m trying to do I can provide more. I’m just only wanting to show verified accounts on profiles. I plan on having Minecraft (Mojang), Discord, and Riot Games (League of Legends) but for my use I’d need them to be verified values to avoid impersonation.
