Annotation Interface OAuth2LoginAuthenticationSource


@Target({ANNOTATION_TYPE,METHOD}) @Retention(RUNTIME) @ArgumentsSource(AuthenticationProvider.class) public @interface OAuth2LoginAuthenticationSource

Define the different OAuth2AuthenticationToken instances to run each of JUnit 5 @ParameterizedTest with.

Usage:
 @OAuth2LoginAuthenticationSource({ @WithOAuth2Login("NICE"), @WithOAuth2Login("VERY_NICE") })
 void test(@ParameterizedOAuth2Login OAuth2AuthenticationToken auth) throws Exception {
     ...
 }
 
Since:
6.1.12
Author:
Jerome Wacongne ch4mp@c4-soft.com
See Also: