Package com.onec.auth.spi
Interface AuthMethodsContributor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Additively contributes SSO options to the login screen, on top of whatever the single
AuthMethodsProvider already offers. Implemented by connectors that act as an identity
provider — e.g. a "Log in with Telegram" starter — so they can surface a sign-in button
without replacing the base provider, which remains the one authority for the password
flag, mode, and logout URL.
The UI module collects every contributor bean (ordered) and appends their
ssoProviders() to the base AuthMethods.providers(). Contributors compose:
registering one is purely additive and backward compatible, and multiple may coexist.
Like the rest of this auth↔UI seam (see AuthMethodsProvider), the result is plain data
with no Spring Security types, so a contributor need not depend on the auth implementation.
-
Method Summary
Modifier and TypeMethodDescriptionSSO options to append to the login screen.
-
Method Details
-
ssoProviders
List<SsoProvider> ssoProviders()SSO options to append to the login screen. Never null; return an empty list to add nothing.
-