Skip to content

Commit

Permalink
Merge pull request #272 from withanage/stable-3_3_0
Browse files Browse the repository at this point in the history
#271 Remove the orcidToken previously rendered in publishing API
  • Loading branch information
withanage committed Jul 30, 2023
2 parents 7ac0f49 + 365a035 commit b2ba9d6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions OrcidProfilePlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,42 +104,42 @@ function register($category, $path, $mainContextId = null) {

$schema->properties->orcidSandbox = (object)[
'type' => 'string',
'apiSummary' => true,
'writeOnly' => 'true',
'validation' => ['nullable']
];
$schema->properties->orcidAccessToken = (object)[
'type' => 'string',
'apiSummary' => true,
'writeOnly' => 'true',
'validation' => ['nullable']
];
$schema->properties->orcidAccessScope = (object)[
'type' => 'string',
'apiSummary' => true,
'writeOnly' => 'true',
'validation' => ['nullable']
];
$schema->properties->orcidRefreshToken = (object)[
'type' => 'string',
'apiSummary' => true,
'writeOnly' => 'true',
'validation' => ['nullable']
];
$schema->properties->orcidAccessExpiresOn = (object)[
'type' => 'string',
'apiSummary' => true,
'writeOnly' => 'true',
'validation' => ['nullable']
];
$schema->properties->orcidAccessDenied = (object)[
'type' => 'string',
'apiSummary' => true,
'writeOnly' => 'true',
'validation' => ['nullable']
];
$schema->properties->orcidEmailToken = (object)[
'type' => 'string',
'apiSummary' => true,
'writeOnly' => 'true',
'validation' => ['nullable']
];
$schema->properties->orcidWorkPutCode = (object)[
'type' => 'string',
'apiSummary' => true,
'writeOnly' => 'true',
'validation' => ['nullable']
];
});
Expand Down Expand Up @@ -365,7 +365,7 @@ function buildOAuthUrl($handlerMethod, $redirectParams) {
// Use the Dispatcher to construct the url and set the page router.
$redirectUrl = $request->getDispatcher()->url($request, ROUTE_PAGE, null, 'orcidapi',
$handlerMethod, null, $redirectParams);

// overwrite redirect base url if variable is provided in config.inc.php
$orcidRedirectBaseUrl = Config::getVar('orcidProfilePlugin', 'orcid_redirect_base_url');
if (!ValidatorFactory::make([$orcidRedirectBaseUrl], [['required','url']])->fails()) {
Expand Down

0 comments on commit b2ba9d6

Please sign in to comment.