User tests: Successful: Unsuccessful:
Pull Request resolves # .
This pull request (PR) updates the composer dependency "joomla/oauth2" from version 3.0.2 to version 3.0.3.
It fixes the authentication failing when the response from the authentication provider contains the content-type header with charset, e.g. application/json; charset=utf-8, instead of just application/json.
The only change in version 3.0.3 is the one from PR joomla-framework/oauth2#37 to fix that issue.
See also https://github.com/joomla-framework/oauth2/releases/tag/3.0.3 .
https://your-domain/index.php?option=com_ajax&plugin=sismosexampleoauth2&format=rawyour-domain replaced by your actual domain.Client.php from https://raw.githubusercontent.com/joomla-framework/oauth2/refs/heads/3.x-dev/src/Client.php and save it in folder libraries/vendor/joomla/oauth2/src of your Joomla site.Without the patch of this PR applied, install the plugin used for testing.
You can get it here: https://github.com/LadySolveig/plg_system_sismosexampleoauth2/releases/tag/2.0.0-alpha1 .
In the plugin's configuration, enter following parameters and save:
https://accounts.google.com/o/oauth2/v2/auth?scope=openid%20emailhttps://oauth2.googleapis.com/token
Use the "Generate Token" button.
Result: See section "Actual result BEFORE applying this Pull Request" below.
Apply the patch using either the patched package or custom update URL created by Drone CI for this PR or by downloading the modified raw file Client.php from https://raw.githubusercontent.com/joomla-framework/oauth2/refs/heads/3.x-dev/src/Client.php and saving it in folder libraries/vendor/joomla/oauth2/src of your Joomla site.
Close the plugin options and open it again, or just reload the page.
Use the "Generate Token" button.
Result: See section "Expected result AFTER applying this Pull Request" below.
The "Created" time of the token is updated, but there is no token value and no type.

In log file administrator/logs/plg_system_sismosexampleoauth2.php:
2026-05-02T12:34:42+00:00 INFO 2003:c6:bf3c:2270:2031:3024:67d4:2576 authorize::accessTokenData: (object) array(
'{
__"access_token":_"ya29_a0AQv...LHA0299",
__"expires_in":_3599,
__"scope":_"openid_https://www_googleapis_com/auth/userinfo_email",
__"token_type":_"Bearer",
__"id_token":_"eyJhbGciOiJSUzI1NiIsImtpZCI6IjE5Y2FhZWNkZThmNDg1ZThmNTkzOGY0OGFiYTBjZTdhMzU4MWYwMjciLCJ0eXAiOiJKV1QifQ_eyJpc3MiOiJodHRwczovL2FjY291bnRzLmdvb2dsZS5jb20iLCJhenAiOiI0NzU2ODYyMzIwNzYtbHJrZmFoZHBvdHBqdHIwaWJkZmlwcHRva3ZzMWRsdDkuYXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iLCJhdWQiOiI0NzU2ODYyMzIwNzYtbHJrZmFoZHBvdHBqdHIwaWJkZmlwcHRva3ZzMWRsdDkuYXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iLCJzdWIiOiIxMTEwNDU3MzE4Mjg4MDU3NDM4ODIiLCJlbWFpbCI6InJmMzMyMjk3QGdtYWlsLmNvbSIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJhdF9oYXNoIjoiQno5NWZEcEFqVlVMcGk5RlFRNFgzdyIsImlhdCI6MTc3NzcyNTI4MiwiZXhwIjoxNzc3NzI4ODgyfQ_fsg1JkeqhNam8ZR2GcjDbj3Fh4EAM9xGkhaAlwH6GFR_JaFujnfAlc2Y7FVUwyS297uCwvPAdCdClBHsvLubkutCZam4OhmpMnFRw76XcFJkXzLQWQOzbu7EQE2uuSvufnvvkT2AR7p94HbtOLYyGy1xX58h05X3rFeaeVc8RaHvYlQM9bndHKXW5umyS14TjOF5in_VHuwdHMxaWt-MKmS8RDyVQ5W_zVdsvpUrss0Lik1Kg1ee94uFgjWFeqLds1bl9MaBqt6YNs1A--BGNgslLKqaf8-6SUrJ1JwoQx_Qx6Sz_VjBrQTN_Qnv5-oM7WGYisCKMkkjaELROQc7Aw"
}' => '',
'created' => '2026-05-02 12:34:42',
'access_token' => '**(hidden)**',
'refresh_token' => '**(hidden)**',
)
(Long value of "access_token" shortened here in the extract.)
The "Created" time of the token is updated as well as the token value and type.

In log file administrator/logs/plg_system_sismosexampleoauth2.php:
2026-05-02T12:36:44+00:00 INFO 2003:c6:bf3c:2270:2031:3024:67d4:2576 authorize::accessTokenData: (object) array(
'access_token' => '**(hidden)**',
'expires_in' => 3598,
'scope' => 'openid https://www.googleapis.com/auth/userinfo.email',
'token_type' => 'Bearer',
'id_token' => 'eyJhbGciOiJSUzI1NiIsImtpZCI6IjE5Y2FhZWNkZThmNDg1ZThmNTkzOGY0OGFiYTBjZTdhMzU4MWYwMjciLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJodHRwczovL2FjY291bnRzLmdvb2dsZS5jb20iLCJhenAiOiI0NzU2ODYyMzIwNzYtbHJrZmFoZHBvdHBqdHIwaWJkZmlwcHRva3ZzMWRsdDkuYXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iLCJhdWQiOiI0NzU2ODYyMzIwNzYtbHJrZmFoZHBvdHBqdHIwaWJkZmlwcHRva3ZzMWRsdDkuYXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iLCJzdWIiOiIxMTEwNDU3MzE4Mjg4MDU3NDM4ODIiLCJlbWFpbCI6InJmMzMyMjk3QGdtYWlsLmNvbSIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJhdF9oYXNoIjoiYlo0LVpJbmFsYnZDdkZsOURYX0pDUSIsImlhdCI6MTc3NzcyNTQwNCwiZXhwIjoxNzc3NzI5MDA0fQ.J6vE4jPu1rMfedWnJivupxxiY3L9uvS-j0katruMWuc29VxCFgLr_PLEY-Sjpp9VAyA7aKpwD3pGTkuTKa32uXuFzcCxV4Oev6hO1ioI63YctLAr4KBfOrYCln0EBSaJ9sWKExxpYklOG9HGQxwiLxDmd2WTCPdtE6choavKlYG42qNdzc65SZazeLRS0uO5oWuZjgrqoeHq-D9s7MAu3Kv24knRliNqQk7lNUg2f4ya1Z3lFwP4Szv-pCgLIXQLHnTaPTwhhXB3g4ysPqvN7YGV8JwzlARy269sx9jlfoBnn--ql_Jtw57wY1PQu3qQ8Z2Hx-OBtlFSAhQRCZqgaQ',
'created' => '2026-05-02 12:36:43',
'refresh_token' => '**(hidden)**',
)
Please select:
Documentation link for guide.joomla.org:
No documentation changes for guide.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
| Status | New | ⇒ | Pending |
| Category | ⇒ | External Library Composer Change |
I have tested this item ✅ successfully on b369216
Without the fix try to connect with my Joomla 5.4 test site and google auth component
=>
2026-05-04T06:34:31+00:00 WARNING 90.127.131.225 com_jogoogleauth com_jogoogleauth.auth
2026-05-04T06:34:34+00:00 WARNING 90.127.131.225 com_jogoogleauth com_jogoogleauth.auth not authenticated
With the fix it is OK
I have tested the modification for joomla 6.10
restore installation from joomla_5.4.5
install component JO's google auth https://extensions.joomla.org/extension/access-a-security/jo-s-google-auth/
copy the composer.json from https://github.com/joomla/joomla-cms/blob/5.4-dev/composer.json
type composer require joomla/oauth2:3.0.3
try to connect to my test site
=> traces
2026-05-04T06:57:40+00:00 WARNING com_jogoogleauth.auth isauthentificated
2026-05-04T06:57:40+00:00 WARNING com_jogoogleauth.auth token :Array
(
[access_token] => ya29.xxx
[expires_in] => 3596
[scope] => https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile openid
[token_type] => Bearer
[id_token] => eyyyy
[created] => 1777877860
)
2026-05-04T06:57:40+00:00 WARNING on user login
I have tested this item ✅ successfully on b369216
Without the fix try to connect with my Joomla 5.4 test site and google auth component
=>
2026-05-04T06:34:31+00:00 WARNING 90.127.131.225 com_jogoogleauth com_jogoogleauth.auth
2026-05-04T06:34:34+00:00 WARNING 90.127.131.225 com_jogoogleauth com_jogoogleauth.auth not authenticated
With the fix it is OK
I have tested the modification for joomla 6.10
restore installation from joomla_5.4.5

install component JO's google auth https://extensions.joomla.org/extension/access-a-security/jo-s-google-auth/
copy the composer.json from https://github.com/joomla/joomla-cms/blob/5.4-dev/composer.json
type composer require joomla/oauth2:3.0.3
try to connect to my test site
=> traces
2026-05-04T06:57:40+00:00 WARNING com_jogoogleauth.auth isauthentificated
2026-05-04T06:57:40+00:00 WARNING com_jogoogleauth.auth token :Array
(
[access_token] => ya29.xxx
[expires_in] => 3596
[scope] => https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile openid
[token_type] => Bearer
[id_token] => eyyyy
[created] => 1777877860
)
2026-05-04T06:57:40+00:00 WARNING on user login
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47721.