Class OidcTokens

java.lang.Object
dev.relism.flash.ext.security.test.OidcTokens

public final class OidcTokens extends Object
Real tokens from a real provider — Keycloak in Testcontainers, typically.
  • Method Details

    • passwordGrant

      public static Consumer<dev.relism.flash.testing.FlashRequest> passwordGrant(String issuer, String clientId, String clientSecret, String username, String password)
      Sends the request with an access token obtained by the resource owner password grant. The client must allow direct access grants — a test realm's setting, never a production one.