[3.2][RC] Discord OAuth2 light

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!
Scam Warning
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)
User avatar
3Di
Former Team Member
Posts: 14071
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

[3.2][RC] Discord OAuth2 light

Post by 3Di » Wed Aug 21, 2019 2:10 am

Image OAuth2 light

             » phpBB Studio

                      :label: 1.0.3 (only Login)
                        :tools: phpBB >= 3.2.7

Description: Enable users' login via Discord's account.

:inbox_tray: ⬇️ https://phpbbstudio.com/extensions/discord-oauth2-light

:bookmark_tabs: https://github.com/phpBB-Studio/DiscordOAuth2light


Image

Changeslog: https://github.com/phpBB-Studio/Discord ... ANGELOG.md
Last edited by 3Di on Tue Aug 27, 2019 11:38 pm, edited 8 times in total.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
👨‍🏫 | Take a tour to | The Studio | 👨‍🏫

User avatar
3Di
Former Team Member
Posts: 14071
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

[3.2][RC] Discord OAuth2 light

Post by 3Di » Wed Aug 21, 2019 2:11 am

Application settings:
https://discordapp.com/developers/applications/ (New application)

Copy and save the Client ID and Client Secret to use in the ACP / Client communication / Authentication page.

Image

OAuth2 Redirects:
Two links is what you need to use in Redirects for the application to work (http or https is ok)

http://www.example.com/board/ucp.php?mode=login&login=external&oauth_service=studio_discord

http://www.example.com/board/ucp.php?i=ucp_auth_link&mode=auth_link&link=1&oauth_service=studio_discord

replace http://www.example.com/board with your Board's URL :geek:

Scopes:
identity

Image
Last edited by 3Di on Tue Aug 27, 2019 11:39 pm, edited 11 times in total.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
👨‍🏫 | Take a tour to | The Studio | 👨‍🏫

User avatar
3Di
Former Team Member
Posts: 14071
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

[3.2][DEV] Discord OAuth2 light

Post by 3Di » Wed Aug 21, 2019 2:11 am

Image

Image
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
👨‍🏫 | Take a tour to | The Studio | 👨‍🏫

User avatar
3Di
Former Team Member
Posts: 14071
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

[3.2][BETA] Discord OAuth2 light

Post by 3Di » Wed Aug 21, 2019 10:06 pm

Discord OAuth2 light v1.0.0-beta: just released. See first post.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
👨‍🏫 | Take a tour to | The Studio | 👨‍🏫

User avatar
3Di
Former Team Member
Posts: 14071
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

[3.2][BETA] Discord OAuth2 light

Post by 3Di » Fri Aug 23, 2019 1:09 am

Discord OAuth2 light v1.0.1-beta: just released. See first post.

Changelog inside.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
👨‍🏫 | Take a tour to | The Studio | 👨‍🏫

User avatar
ViolaF
Registered User
Posts: 1453
Joined: Tue Aug 14, 2012 11:52 pm

Re: [3.2][BETA] Discord OAuth2 light

Post by ViolaF » Fri Aug 23, 2019 9:12 am

perfect, thnx 4 this ext :D

User avatar
3Di
Former Team Member
Posts: 14071
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

[3.2][BETA] Discord OAuth2 light

Post by 3Di » Sat Aug 24, 2019 1:01 am

New version 1.0.2-beta just released.

Important code changes, please update.

The changes-log is also included in the package.

No need to delete data: disable and delete the old folder.

There should be no further adjustments from here on. :P :)
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
👨‍🏫 | Take a tour to | The Studio | 👨‍🏫

User avatar
3Di
Former Team Member
Posts: 14071
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

[3.2][RC] Discord OAuth2 light

Post by 3Di » Tue Aug 27, 2019 11:42 pm

3Di wrote:
Sat Aug 24, 2019 1:01 am
There should be no further adjustments from here on. :P :)
:D

Final and submitted version - v1.0.3 is available.


v1.0.3 - 27-08-2019
  • - Use of our library at packagist
  • - Downgraded to 3.2.7 ext requirements
  • - `Delete Data` action is a necessary evil this time
  • - Hardening delete data migration
  • - Code housekeeping
This time we badly need to DELETE DATA after disabling the extension, and DELETE the old folder. :o

In addition, after that you need to amend the 2 links in the Discord's Redirects for the application to work (http or https is ok)

http://www.example.com/board/ucp.php?mode=login&login=external&oauth_service=studio_discord

http://www.example.com/board/ucp.php?i=ucp_auth_link&mode=auth_link&link=1&oauth_service=studio_discord

replace http://www.example.com/board with your Board's URL ;-D
To beautify oneself one must suffer. :ugeek: :)
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
👨‍🏫 | Take a tour to | The Studio | 👨‍🏫

nou nou
Registered User
Posts: 361
Joined: Sat Oct 29, 2016 8:08 pm

Re: [3.2][RC] Discord OAuth2 light

Post by nou nou » Thu Sep 05, 2019 4:04 am

Testing this - works really well when using the ucp login link, but when you try to login using other forms like

https://www.myforum.com/forum/search.php?search_id=unreadposts

you get a

Invalid Oauth2 redirect_uri

error.

User avatar
3Di
Former Team Member
Posts: 14071
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [3.2][RC] Discord OAuth2 light

Post by 3Di » Thu Sep 05, 2019 4:10 am

nou nou wrote:
Thu Sep 05, 2019 4:04 am
Testing this - works really well when using the ucp login link, but when you try to login using other forms like

https://www.myforum.com/forum/search.php?search_id=unreadposts

you get a

Invalid Oauth2 redirect_uri

error.
It works on each of my environments, also live at The Studio. The error log is set to E_ALL there btw.
You can try after registering at https://phpbbstudio.com/search.php?sear ... nreadposts
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
👨‍🏫 | Take a tour to | The Studio | 👨‍🏫

nou nou
Registered User
Posts: 361
Joined: Sat Oct 29, 2016 8:08 pm

Re: [3.2][RC] Discord OAuth2 light

Post by nou nou » Thu Sep 05, 2019 4:29 am

Ah, but on your forum, on the https://www.example.com/forum/search.php?search_id=unreadposts the discord button links to

https://phpbbstudio.com/ucp.php?mode=login&login=external&oauth_service=studio_discord

which works, whereas on mine, same page, for some reason, the discord button links to

https://www.example.com/forum/search.php?search_id=unreadposts&login=external&oauth_service=studio_discord

which does not work, also for your forum.

Odd that the links are different... :?:

User avatar
3Di
Former Team Member
Posts: 14071
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [3.2][RC] Discord OAuth2 light

Post by 3Di » Thu Sep 05, 2019 4:31 am

nou nou wrote:
Thu Sep 05, 2019 4:29 am
Odd that the links are different...
Nope, odd is you haven't noticed you need 2 links as per my instructions IMHO?

viewtopic.php?p=15307066#p15307066
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
👨‍🏫 | Take a tour to | The Studio | 👨‍🏫

User avatar
3Di
Former Team Member
Posts: 14071
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [3.2][RC] Discord OAuth2 light

Post by 3Di » Thu Sep 05, 2019 5:09 am

3Di wrote:
Thu Sep 05, 2019 4:10 am
Invalid Oauth2 redirect_uri
What you get is this

Image

Which is an error on your side (discord settings) I believe.
The error above (message) is not present in the whole core code of phpBB, including this extension. :|

Proof: https://phpbbstudio.com/search.php?sear ... io_discord

Also our TEST board goes that way: https://rhea.phpbbstudio.com/search.php ... nreadposts
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
👨‍🏫 | Take a tour to | The Studio | 👨‍🏫

nou nou
Registered User
Posts: 361
Joined: Sat Oct 29, 2016 8:08 pm

Re: [3.2][RC] Discord OAuth2 light

Post by nou nou » Thu Sep 05, 2019 5:31 am

3Di wrote:
Thu Sep 05, 2019 4:31 am
nou nou wrote:
Thu Sep 05, 2019 4:29 am
Odd that the links are different...
Nope, odd is you haven't noticed you need 2 links as per my instructions IMHO?

viewtopic.php?p=15307066#p15307066
Got the two links as per your instructions, linking account works, UCP login link works, just the one for unread posts does not. Set it up twice to make sure.

It's late here now, but last time I tried the unread posts link adjusted for your forum it did not work either. I'll take a look again after some rest.

User avatar
3Di
Former Team Member
Posts: 14071
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

[3.2][RC] Discord OAuth2 light

Post by 3Di » Thu Sep 05, 2019 5:34 am

As you can see we can't reproduce it on 2 live boards of mine (I tried also locally).

Make sure, if not already done, to have effectively saved your new settings at discord.
Also wait a few minutes for those to be effective.

If all of this fails try disable / delete data / delete the ext folder / upload the new folder.

On a side note, our downloads are directly packaged on demand (when you click on `download`), from our site.. where this extension is "live".

https://phpbbstudio.com/extensions/discord-oauth2-light

What You See Is What You Get
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
👨‍🏫 | Take a tour to | The Studio | 👨‍🏫

Post Reply

Return to “Extensions in Development”