Jump to content

You're browsing the 2004-2023 VATSIM Forums archive. All content is preserved in a read-only fashion.
For the latest forum posts, please visit https://forum.vatsim.net.

Need to find something? Use the Google search below.
PLEASE READ - Webmaster Support Forum
This forum will be retired in the near future. Please direct all queries to our dedicated GitHub support page https://github.com/vatsimnetwork/developer-info/discussions 
Here you can find documentation on our services and we are continuing to migrate pertinent information into the Wiki pages https://github.com/vatsimnetwork/developer-info/wiki

OAuth 2 WordPress plugin


Martijn Rammeloo
 Share

Recommended Posts

Martijn Rammeloo
Posted
Posted

Hi,

 

We (Dutch VACC) currently use Blaatschaap on our WP site.

 

I understand that the new VATSIM SSO uses OAuth 2, rendering Blaatschaap useless.

 

Does anyone have an idea about a proper alternative?

 

Kind regards,

 

Martijn

Link to comment
Share on other sites

  • 1 month later...
Ernesto Martinez
Posted
Posted (edited)

Any updates on this? We have 8 Wordpress sites in the division. 

Edited by Ernesto Martinez

Ernesto Martinez

Membership Audit Team
VATSIM Supervisor
        
 
 
  [email protected]
  support.vatsim.net
 
vatsim_0.png
 
 
 
 
 
   
 
 
Link to comment
Share on other sites

Nick Harasym
Posted
Posted

Any wordpress plugin that offers oauth2 for auth should be able to be configured to work with auth.vatsim.net

Nick Harasym
VATSIM Senior Developer
Team Lead, Infrastructure
## [email protected]
Facebook Twitter Instagram
VATSIM Logo
Link to comment
Share on other sites

  • 5 weeks later...
Jamie Janssen
Posted
Posted (edited)

In the mean time I have build my own Plugin as Oauth2 plugins are not widely available for WordPress.

Thanks!

Edited by Jamie Janssen

Jamie Janssen

ACCNL3 Webmaster

Dutch VACC

 
 
 
  webmaster@dutchvacc.nl
  https://www.dutchvacc.nl
1867669885_DVLogo.thumb.jpg.3f12623d8d3006d2e0ec97a8469dab4b.jpg
Link to comment
Share on other sites

Nestor Perez
Posted
Posted

Feel like sharing it with the community maybe @Jamie Janssen? Maybe we can upload it to the Network Github for everyone to use? 🙂

Me.

Link to comment
Share on other sites

  • 3 weeks later...
Jamie Janssen
Posted
Posted (edited)

I would like to, but for now I run into a small problem: we get an SSL error, 2 times a day on avarage, on the 'old' SSO as well. I keep a seperate logfile if it occurs.
The error:

cURL error 35: Unknown SSL protocol error in connection to auth.vatsim.net:443

Maybe I need to contact you directly @Nestor Perez about this. It happens during Token exchange. A simple refresh (pounding F5) solves the issue, but this one is a bit strange.

Again it occurs twice a day, very random.

Sharing is caring: our plugin is very custom. I have incorporated a few Dutch VACC specific checks like 'is the user a DV member', but I could clean out the stuff and share it on the GIT.

Edited by Jamie Janssen

Jamie Janssen

ACCNL3 Webmaster

Dutch VACC

 
 
 
  webmaster@dutchvacc.nl
  https://www.dutchvacc.nl
1867669885_DVLogo.thumb.jpg.3f12623d8d3006d2e0ec97a8469dab4b.jpg
Link to comment
Share on other sites

Nestor Perez
Posted
Posted

Uhhhh, that's a weird one... gonna play the "nothing to do with me" card and pass it on to the server guys 😛
@Nick Harasym , see above 🙂

Me.

Link to comment
Share on other sites

  • 1 month later...
Steven Fauconnier
Posted
Posted

Any updates?

Belux vACC Director (ACCBE1)|Mail: steven.fauconnier(at)beluxvacc.org

------------------

ATSimTest Lead - VATSIM Europe Division |Mail: steven.fauconnier(at)vateud.net

Link to comment
Share on other sites

Nick Harasym
Posted
Posted

Hey there!

Is this happening around the same time each day? This is the first report of it and I've never ran into it myself.

Nick Harasym
Senior Network Infrastructure Engineer 
## [email protected]
## www.vatsim.net
## ##
7JRF7kO.png
Link to comment
Share on other sites

Jamie Janssen
Posted
Posted

Hi @Nick Harasym, i'm logging these errors and it miraculously stopped after the 12th of june this year. Maybe an (local) update resolved this issue? I update our server on a regularly basis.

At everyone else: I have made a very extensive plugin, fully integrates into our Wordpress website and assigns various roles based on the user's Vatsim status. Not quite suitable to release into the wild, but I'm willing to clean up the code and provide it on Gitlab.

  • Like 1

Jamie Janssen

ACCNL3 Webmaster

Dutch VACC

 
 
 
  webmaster@dutchvacc.nl
  https://www.dutchvacc.nl
1867669885_DVLogo.thumb.jpg.3f12623d8d3006d2e0ec97a8469dab4b.jpg
Link to comment
Share on other sites

  • 1 month later...
Owen Kane
Posted
Posted

@Jamie Janssen Any further progress or information on releasing your WP Plugin in the wild? 

If not @Nick Harasym or @Nestor Perez would VATSIM  be in a position to reccomend an oAuth 2.0 WP Plugin or work with us to slect one that would work?.

Thank You

CZEG-EDMONTON-2020-LOGO-C-LOGO-400W-OKSIG.png
Link to comment
Share on other sites

  • 4 weeks later...
James Pudney 1000702
Posted
Posted

I appreciate this thread hasn't been used in awhile, but as above has anyone successfully implemented the new VATSIM connect into Wordpress? If so what oAuth 2.0 plugin did you use?

I've tried a couple but they don't seem to work very well or at all. 

Thanks,

James

Kind Regards,

JAMES PUDNEY 
Information System Coordinator
##  
Facebook visit VATCAR.net
VATSIM Logo


 

 

Link to comment
Share on other sites

Owen Kane
Posted
Posted

@James Pudney 1000702 I too have tried several and none seem to work. Waiting for answer, in the meantime I might have to drop VATSIM SSO as our current SSO plugin is more than 5 years old with no development and is not compatable with one of our wordpress plugins that I need to upgrade. Hoping for an answer.

CZEG-EDMONTON-2020-LOGO-C-LOGO-400W-OKSIG.png
Link to comment
Share on other sites

Nestor Perez
Posted
Posted (edited)
On 9/12/2020 at 2:45 PM, Owen Kane said:

If not @Nick Harasym or @Nestor Perez would VATSIM  be in a position to reccomend an oAuth 2.0 WP Plugin or work with us to slect one that would work?.

I unfortunately have zero experience with Wordpress, and believe this is the case for most -if not all- people in our team, so not sure if anyone in the team can really point you in the right direction.

What issues are you guys facing exactly? Is there no generic OAuth2 plugins? Do they not work? If not, why don't they?

Edited by Nestor Perez

Me.

Link to comment
Share on other sites

James Pudney 1000702
Posted
Posted

Hi,

I think some of the standard OAuth2 plugins are just poorly built and don't support this type of function - I got one functioning but it would never once authenticated redirect back to the page I specified. I think this is purely because they don't allow you to specify endpoints etc.

I have now managed to implement OAuth Single Sign On - SSO (OAuth Client)

This works just fine, the only problem is the freeware version only allows unto 10 auto registrations per site, but you can manually add the CID to username within WordPress and it allows your user to authenticate without auto register and it authenticates between website and auth.vatsim.net just fine. 

Hope that helps a bit.

Thanks,

James

  • Like 1

Kind Regards,

JAMES PUDNEY 
Information System Coordinator
##  
Facebook visit VATCAR.net
VATSIM Logo


 

 

Link to comment
Share on other sites

Jamie Janssen
Posted
Posted

HI all, sorry my Vatsim + notification e-mails go straight to the Junk box for some reason. Haven't got to it yet. The code however is quite simpel and clean, only about a hundred lines of code. Not more. I'm not a Wordpress Plugin coder, but managed to build one. Probably not according standards, but ours works very well now.

Bare with me please...

  • Like 2

Jamie Janssen

ACCNL3 Webmaster

Dutch VACC

 
 
 
  webmaster@dutchvacc.nl
  https://www.dutchvacc.nl
1867669885_DVLogo.thumb.jpg.3f12623d8d3006d2e0ec97a8469dab4b.jpg
Link to comment
Share on other sites

  • 1 month later...
Joseph Pentz
Posted
Posted
On 10/6/2020 at 4:43 AM, James Pudney 1000702 said:

Hi,

I think some of the standard OAuth2 plugins are just poorly built and don't support this type of function - I got one functioning but it would never once authenticated redirect back to the page I specified. I think this is purely because they don't allow you to specify endpoints etc.

I have now managed to implement OAuth Single Sign On - SSO (OAuth Client)

This works just fine, the only problem is the freeware version only allows unto 10 auto registrations per site, but you can manually add the CID to username within WordPress and it allows your user to authenticate without auto register and it authenticates between website and auth.vatsim.net just fine. 

Hope that helps a bit.

Thanks,

James

James,

I've installed the same plugin, assuming from miniOrange, the developer. I still have to apply for my VATSIM OAuth cert once my site is complete as I am just running it on a backend right now so can't configure till I have that complete along with my SSL. My question is can you elaborate on how you are manually adding the CID past 10 auto registrations? Are you using the free attribute mapping and creating a custom field within the Wordpress Users? If you could elaborate on how you made this work, i'd really appreciate it!

Joe

Link to comment
Share on other sites

James Pudney 1000702
Posted
Posted

Hi Joe,

Are you using Wordpress? If so you'll have to do a import of the CID you want of your site onto the "users" section of the wordpress dashboard. 

It's a heavy manual task but we're finding at VATCAR this way of implementing the SSO and using it with MiniOrange is working okay. Ideally we'd like a more robust option but for now whilst we work on other things it suits.

Let me know if you need any help.

Thanks,

James

Kind Regards,

JAMES PUDNEY 
Information System Coordinator
##  
Facebook visit VATCAR.net
VATSIM Logo


 

 

Link to comment
Share on other sites

  • 2 weeks later...
Joseph Pentz
Posted
Posted
On 11/23/2020 at 7:51 AM, James Pudney 1000702 said:

Hi Joe,

Are you using Wordpress? If so you'll have to do a import of the CID you want of your site onto the "users" section of the wordpress dashboard. 

It's a heavy manual task but we're finding at VATCAR this way of implementing the SSO and using it with MiniOrange is working okay. Ideally we'd like a more robust option but for now whilst we work on other things it suits.

Let me know if you need any help.

Thanks,

James

James would you mind if I emailed you, I'm having trouble implementing the miniOrange SSO and not sure what I have wrong

Link to comment
Share on other sites

Joseph Pentz
Posted
Posted
10 minutes ago, Joseph Pentz said:

James would you mind if I emailed you, I'm having trouble implementing the miniOrange SSO and not sure what I have wrong

Disregard - I'm an idiot and forgot to enter in my IP into the VATSIM dashboard to access the API.

  • Like 1
Link to comment
Share on other sites

Jamie Janssen
Posted
Posted (edited)
On 9/12/2020 at 2:45 PM, Owen Kane said:

@Jamie Janssen Any further progress or information on releasing your WP Plugin in the wild? 

If not @Nick Harasym or @Nestor Perez would VATSIM  be in a position to reccomend an oAuth 2.0 WP Plugin or work with us to slect one that would work?.

Thank You

Finally found some time to dive into this. Time was very precious lately. Would you be able to test it for me @Owen Kane? My plan is to share my plugin on Gitlabs, or maybe @Nestor Perez has a place to share it?
As we made some early decisions during our migration from Joomla to WP, we where able to start with SSO from the beginning. If you already have some users in your WP database, things might get nasty.

Edit: if someone else wants to join in, feel free to do so. I expect you to have some knowledge of PHP. My plugin is very basic on the Admin side. The config and setup takes place inside the code, which is btw very small and readable. With enough PHP knowledge you would be able to extend it to your needs.
That is why we haven't shared it to the community yet. Our goal was to switch to oAuth2, not to build a shiny fancy plugin 🙂

Edited by Jamie Janssen
  • Like 1

Jamie Janssen

ACCNL3 Webmaster

Dutch VACC

 
 
 
  webmaster@dutchvacc.nl
  https://www.dutchvacc.nl
1867669885_DVLogo.thumb.jpg.3f12623d8d3006d2e0ec97a8469dab4b.jpg
Link to comment
Share on other sites

Nestor Perez
Posted
Posted (edited)

Hey Jamie, could you join the Dev Discord announced in the latest Tech Blog post and reach out to us through there, please?

Edited by Nestor Perez
Typo

Me.

Link to comment
Share on other sites

Joseph Pentz
Posted
Posted

@Jamie Janssen I would be interested in checking out your plugin. I am still building my website and I was able to get miniOrange oAuth to work with VATSIM auth but unless I'm going to shell out $350 for unlimited registrations and correct information and profile field mapping, I'd like to find an alternate solution. I know enough about working with php to be able to google my way around situations and make it work but by no means am a master at it. I view myself as more the 'make it work' and rely on stackOverflow to give you answers.

Link to comment
Share on other sites

Joseph Pentz
Posted
Posted

@James Pudney 1000702 I went over to the VATCAR website to see how your auth was working and after authentication I noticed it did autopopulate most of my information in the 'Application' section of the website including rating, country, name etc. How are you managing to do that if you aren't using the payware version of miniOrange?

Essentially if I have to make it a manual process I will but i'm curious how you are importing all the information manually into your users database when miniOrange won't automatically do it. Is there a page which is providing you all the rest of the information of the user just not importing it? I still have my 10 free autoregistrations so I may be missing the limitation as I haven't hit it yet. 

Mapping the attributes is key for me on my site and the easier I can do it the better. Appreciate the help!

Link to comment
Share on other sites

 Share