From 240990c022908a6912ff0e57b5e611370c7d1727 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 19 Sep 2022 17:41:58 +0200 Subject: [PATCH] Update oauth.php --- htdocs/admin/oauth.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/htdocs/admin/oauth.php b/htdocs/admin/oauth.php index 5ea646e0511..77a187d2cde 100644 --- a/htdocs/admin/oauth.php +++ b/htdocs/admin/oauth.php @@ -228,6 +228,26 @@ if (count($listinsetup) > 0) { print ''; print ''; + if ($supported) { + $redirect_uri = $urlwithroot.'/core/modules/oauth/'.$supportedoauth2array[$keyforsupportedoauth2array]['callbackfile'].'_oauthcallback.php'; + print ''; + print ''.$langs->trans("UseTheFollowingUrlAsRedirectURI").''; + print ''; + print ''; + + if ($keyforsupportedoauth2array == 'OAUTH_OTHER_NAME') { + print ''; + print ''.$langs->trans("URLOfServiceForAuthorization").''; + print ''; + print ''; + } + } else { + print ''; + print ''.$langs->trans("UseTheFollowingUrlAsRedirectURI").''; + print ''.$langs->trans("FeatureNotYetSupported").''; + print ''; + } + // Api Id print ''; print '';