Annotation Interface ParameterizedOAuth2Login


@Target({ANNOTATION_TYPE,PARAMETER}) @Retention(RUNTIME) @ConvertWith(AuthenticationArgumentProcessor.class) public @interface ParameterizedOAuth2Login

Shortcut for @ConvertWith(ParameterizedOAuth2Login.AuthenticationArgumentProcessor.class), which populates the passed @ParameterizedTest parameter.

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: