Skip to content

Commit

Permalink
Rename ip to identityProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
MKodde committed Jan 23, 2024
1 parent 82d6578 commit f5f2fab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Features/Context/WebContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ public function getIdentityProvider(): IdentityProvider
/** @var RequestStack $stack */
$stack = $this->kernel->getContainer()->get('request_stack');
$stack->push(Request::create('https://tiqr.stepup.example.com'));
$ip = $this->kernel->getContainer()->get('surfnet_saml.hosted.identity_provider');
$identityProvider = $this->kernel->getContainer()->get('surfnet_saml.hosted.identity_provider');
$stack->pop();

if (!$ip instanceof IdentityProvider) {
if (!$identityProvider instanceof IdentityProvider) {
throw new Exception('No Hosted Identity Provider could be found');
}

return $ip;
return $identityProvider;
}

/**
Expand Down

0 comments on commit f5f2fab

Please sign in to comment.