We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e98f86 commit 2271e27Copy full SHA for 2271e27
1 file changed
src/Federation/TrustMarkStatus.php
@@ -85,6 +85,17 @@ public function getType(): string
85
}
86
87
88
+ /**
89
+ * @throws \SimpleSAML\OpenID\Exceptions\TrustMarkStatusException
90
+ * @throws \SimpleSAML\OpenID\Exceptions\JwsException
91
+ * @return non-empty-string
92
+ */
93
+ public function getKeyId(): string
94
+ {
95
+ return parent::getKeyId() ?? throw new TrustMarkStatusException('No KeyId header claim found.');
96
+ }
97
+
98
99
/**
100
* @throws \SimpleSAML\OpenID\Exceptions\JwsException
101
* @throws \SimpleSAML\OpenID\Exceptions\TrustMarkException
@@ -97,6 +108,7 @@ protected function validate(): void
108
$this->getTrustMark(...),
109
$this->getStatus(...),
110
$this->getType(...),
111
+ $this->getKeyId(...),
112
);
113
102
114
0 commit comments