Search in sources :

Example 1 with WebClientSecurity

use of io.helidon.webclient.security.WebClientSecurity in project helidon by oracle.

the class BasicExampleTest method classInit.

@BeforeAll
public static void classInit() {
    Security security = Security.builder().addProvider(HttpBasicAuthProvider.builder().build()).build();
    WebClientSecurity securityService = WebClientSecurity.create(security);
    client = WebClient.builder().addService(securityService).build();
}
Also used : WebClientSecurity(io.helidon.webclient.security.WebClientSecurity) Security(io.helidon.security.Security) WebClientSecurity(io.helidon.webclient.security.WebClientSecurity) BeforeAll(org.junit.jupiter.api.BeforeAll)

Aggregations

Security (io.helidon.security.Security)1 WebClientSecurity (io.helidon.webclient.security.WebClientSecurity)1 BeforeAll (org.junit.jupiter.api.BeforeAll)1