[3.3][RC] Extend OAuth login

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Suggested Hosts
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
DSR!
Registered User
Posts: 45
Joined: Wed Jan 30, 2019 11:42 pm

[3.3][RC] Extend OAuth login

Post by DSR! »

Extend OAuth login

Image

:inbox_tray: Download: https://github.com/xchwarze/oauthlogin-phpbb

🚀 Description:
The intention of this extension is to extend the list of phpBB OAuth providers.
At the moment it adds Github, Discord, Microsoft, Reddit and Wordpress as oauth providers.
This is a public version of my private plugin "dsr/oauth_register" that I developed for use in Indetectables.net.

⚠️ Attention:
1. Bug report ONLY in github.
2. Documentation about configure providers it is in the repo.
Last edited by DSR! on Fri Jul 07, 2023 11:03 am, edited 1 time in total.
BF79
Registered User
Posts: 522
Joined: Fri Feb 13, 2015 1:28 pm
Name: Fouad B

Re: [3.3][RC] Extend OAuth login

Post by BF79 »

nice one bro..
thank you
DSR!
Registered User
Posts: 45
Joined: Wed Jan 30, 2019 11:42 pm

Re: [3.3][RC] Extend OAuth login

Post by DSR! »

Updated to 1.1.0:
* Add Reddit provider
* Add Wordpress provider
* Update docs
User avatar
Zaishen
Registered User
Posts: 199
Joined: Sat Dec 18, 2010 6:08 am

Re: [3.3][RC] Extend OAuth login

Post by Zaishen »

Very nice, to survive, forums need integration of social media!
User avatar
warmweer
Jr. Extension Validator
Posts: 11856
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: [3.3][RC] Extend OAuth login

Post by warmweer »

Zaishen wrote: Thu Jul 06, 2023 11:47 pm Very nice, to survive, forums need integration of social media!
Some may need it, many don't.
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
DSR!
Registered User
Posts: 45
Joined: Wed Jan 30, 2019 11:42 pm

Re: [3.3][RC] Extend OAuth login

Post by DSR! »

It will be a month since I started the validation process of this extension and unfortunately I have no news about it :shock:
User avatar
bakasura
Registered User
Posts: 19
Joined: Tue Aug 15, 2023 1:30 pm

Re: [3.3][RC] Extend OAuth login

Post by bakasura »

Hey DSR!, Greetings to your entire community at indetectables. It's nice to see you around here.

Great extension!
I'm an engineer, my passion is to understand how things work, modify them, improve them... you get the point
User avatar
Dead Man
Registered User
Posts: 312
Joined: Tue Jun 05, 2012 12:35 am

Re: [3.3][RC] Extend OAuth login

Post by Dead Man »

Is this EXT ABANDON?

Keep having issues with PHPBB 3.3.12
So far Only one that has worked is GITHUB
Discord gives error

Code: Select all

Invalid OAuth2 redirect_uri
Trying to use this URI method since its the only one that works when Manually navigating to it.

Code: Select all

ucp.php?mode=login_link&login_link_oauth_service=discord
Else when you log into Discord it keeps trying to use this method that doesnt work

Code: Select all

ucp.php?mode=login&login=external&oauth_service=discord
As for microsoft it gives this error

Code: Select all

We're unable to complete your request
invalid_request: The provided value for the input parameter 'redirect_uri' is not valid. The expected value is a URI which matches a redirect URI registered for this client application.
Edit I added two Redirect URIs. One with WWW and one without it and it started working.

Code: Select all

https://www.example.com/ucp.php
https://example.com/ucp.php
Last edited by Dead Man on Sun Jul 21, 2024 8:02 am, edited 2 times in total.
DSR!
Registered User
Posts: 45
Joined: Wed Jan 30, 2019 11:42 pm

Re: [3.3][RC] Extend OAuth login

Post by DSR! »

I guess you understand the difference between an abandoned and buggy extension and having a configuration problem .....?

I made that documentation 1 year ago, it should still be those steps for those providers.
Unfortunately it is quite normal that these panels are not understood at all, as in the case of discord, which is not very clear.
DSR!
Registered User
Posts: 45
Joined: Wed Jan 30, 2019 11:42 pm

Re: [3.3][RC] Extend OAuth login

Post by DSR! »

Dead Man wrote: Sun Jul 21, 2024 7:00 am Is this EXT ABANDON?

Keep having issues with PHPBB 3.3.12
So far Only one that has worked is GITHUB
Discord gives error

Code: Select all

Invalid OAuth2 redirect_uri
Trying to use this URI method since its the only one that works when Manually navigating to it.

Code: Select all

ucp.php?mode=login_link&login_link_oauth_service=discord
Else when you log into Discord it keeps trying to use this method that doesnt work

Code: Select all

ucp.php?mode=login&login=external&oauth_service=discord
As for microsoft it gives this error

Code: Select all

We're unable to complete your request
invalid_request: The provided value for the input parameter 'redirect_uri' is not valid. The expected value is a URI which matches a redirect URI registered for this client application.
Edit I added two Redirect URIs. One with WWW and one without it and it started working.

Code: Select all

https://www.example.com/ucp.php
https://example.com/ucp.php
However after logging in and giving permissions to let access account it tries to redirect and get this error

Code: Select all

Hmmm… can't reach this page The connection was reset.
Image

I don't know what is happening to you because you didn't upload evidence of what you are doing and the error you are experiencing. But as you can see in the screenshot I just registered an app on discord with oauth enabled and was able to follow the manual perfectly.
User avatar
Dead Man
Registered User
Posts: 312
Joined: Tue Jun 05, 2012 12:35 am

Re: [3.3][RC] Extend OAuth login

Post by Dead Man »

DSR! wrote: Sun Jul 21, 2024 7:46 am I guess you understand the difference between an abandoned and buggy extension and having a configuration problem .....?

I made that documentation 1 year ago, it should still be those steps for those providers.
Unfortunately it is quite normal that these panels are not understood at all, as in the case of discord, which is not very clear.
I added all 3 Redirects with and without he BOARD part however it wont work. keep getting that error Invalid.
However if I log into discord and I get that error: "Invalid OAuth2 redirect_uri"
If I manually input the Second Redirect in the browser it does take me back to the Website.

Have any suggestions of what to do to fix it. I put images below like you mention that might help.
Also THANKS FOR replying been at it for hours trying to get it to work.

Code: Select all

 https://www.example.com/ucp.php?mode=login&login=external&oauth_service=discord
 https://www.example.com/ucp.php?mode=login_link&login_link_oauth_service=discord
 https://www.example.com/ucp.php?i=ucp_auth_link&mode=auth_link&link=1&oauth_service=discord
Image
Image
Image

Only thing I can think of that might fix it. Is if I can EDIT the link on the website from
https://b2k-gamers.com/ucp.php?mode=log ... ce=discord
TO this one since its the one that If I manually input it does take me to the site
https://www.b2k-gamers.com/ucp.php?mode ... ce=discord
Image
DSR!
Registered User
Posts: 45
Joined: Wed Jan 30, 2019 11:42 pm

Re: [3.3][RC] Extend OAuth login

Post by DSR! »

The redirect_uri are a whitelists of the uri that you are going to generate (in this case phpbb does it). I understand that it is not generating them this way because the domain you configured in phpbb does not have it.

So just delete the www. and I understand it should work.
User avatar
Dead Man
Registered User
Posts: 312
Joined: Tue Jun 05, 2012 12:35 am

Re: [3.3][RC] Extend OAuth login

Post by Dead Man »

DSR! wrote: Sun Jul 21, 2024 5:17 pm The redirect_uri are a whitelists of the uri that you are going to generate (in this case phpbb does it). I understand that it is not generating them this way because the domain you configured in phpbb does not have it.

So just delete the www. and I understand it should work.
I removed the WWW from all of them but still get same Error.
I cleared the CACHE and tried it in a Private Incognito tab to try it so no previous cookies where used but no luck.

Image
DSR!
Registered User
Posts: 45
Joined: Wed Jan 30, 2019 11:42 pm

Re: [3.3][RC] Extend OAuth login

Post by DSR! »

you registered twice the same uri that's why it fails you. when logging in the uri used is "mode=login&login=external&oauth_service=discord" and you don't have it registered.
User avatar
Dead Man
Registered User
Posts: 312
Joined: Tue Jun 05, 2012 12:35 am

Re: [3.3][RC] Extend OAuth login

Post by Dead Man »

DSR! wrote: Sun Jul 21, 2024 11:24 pm you registered twice the same uri that's why it fails you. when logging in the uri used is "mode=login&login=external&oauth_service=discord" and you don't have it registered.
Man I feel like a complete DUFUS. Been at it for hours stressing about it. I think my brain wasn't working due to lack of sleep and endless working hours from work.

But Finally worked.

THANKS. REALLY APPRECIATE the help. :D :D :D

Return to “Extensions in Development”