I have a pac4j
Config
with two SAML2Client
:
val clients = new Clients(baseUrl + "/domain/callback", samlClient1, samlClient2)
val config = new Config(clients)
My question:
How do I specify the client I want to use in a secure action if both clients are SAML2Client
?
def SAMLSecure: SecureAction[SAML2Profile, AnyContent, AuthenticatedRequest] =
Secure(
clients = "SAML2Client", // How to specify samlClient1 or samlClient2
authorizers = myAuthorizers,
matchers = myMatchers
)