Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
Fix: Document Generation ?? check
Browse files Browse the repository at this point in the history
  • Loading branch information
jerotire authored and ilindsay committed Mar 10, 2022
1 parent 4fdf330 commit b4298d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ protected function getUriPattern(): string
$prefix = $this->getOsType();

// TODO: VOL-2661 - Check for JWTIdentityProvider will be removed post OpenAM.
if ($prefix === RefData::USER_OS_TYPE_WINDOWS_10 && $config['auth']['identity_provider'] ?? null === JWTIdentityProvider::class) {
if ($prefix === RefData::USER_OS_TYPE_WINDOWS_10 && $config['auth']['identity_provider'] === JWTIdentityProvider::class) {
$url_pattern = $config['webdav']['url_pattern'] ?? null;
if (!isset($url_pattern)) {
throw new ConfigurationException('Expected a URL Pattern defined in configuration at: webdav -> url_pattern');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function finaliseAction()
$uriPattern = $this->getUriPattern();

// TODO: VOL-2661 - Check for JWTIdentityProvider will be removed post OpenAM.
if ($this->getOsType() === RefData::USER_OS_TYPE_WINDOWS_10 && $this->config['auth']['identity_provider'] ?? null === JWTIdentityProvider::class) {
if ($this->getOsType() === RefData::USER_OS_TYPE_WINDOWS_10 && $this->config['auth']['identity_provider'] === JWTIdentityProvider::class) {
$loginId = $this->currentUser()->getIdentity()->getUsername();
$jwt = $this->webDavJsonWebTokenGenerationService->generateToken(
$loginId,
Expand Down

0 comments on commit b4298d2

Please sign in to comment.