Add OIDC Back-Channel Logout Support
Closes gh-12570
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package org.springframework.security.oauth2.core.oidc;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Test {@link OidcIdToken}s
|
||||
@@ -32,6 +33,7 @@ public final class TestOidcIdTokens {
|
||||
// @formatter:off
|
||||
return OidcIdToken.withTokenValue("id-token")
|
||||
.issuer("https://example.com")
|
||||
.audience(List.of("client-id"))
|
||||
.subject("subject")
|
||||
.issuedAt(Instant.now())
|
||||
.expiresAt(Instant.now()
|
||||
|
||||
@@ -50,7 +50,7 @@ public final class TestOidcUsers {
|
||||
.expiresAt(expiresAt)
|
||||
.subject("subject")
|
||||
.issuer("http://localhost/issuer")
|
||||
.audience(Collections.unmodifiableSet(new LinkedHashSet<>(Collections.singletonList("client"))))
|
||||
.audience(Collections.unmodifiableSet(new LinkedHashSet<>(Collections.singletonList("client-id"))))
|
||||
.authorizedParty("client")
|
||||
.build();
|
||||
// @formatter:on
|
||||
|
||||
Reference in New Issue
Block a user