Package com.onec.ui

Class LoginDivController

java.lang.Object
com.onec.ui.LoginDivController

@RestController @RequestMapping("/api/divkit") public class LoginDivController extends Object
Serves the server-driven (DivKit) login screen at GET /api/divkit/login. Public — it renders before sign-in. The base methods come from the auth module via the AuthMethodsProvider SPI (password flag, mode, logout URL, and its own SSO list); when no provider bean is present (the auth starter is absent), it degrades to a password-only screen.

On top of the base, every AuthMethodsContributor bean adds its SSO options additively, so a connector acting as an identity provider can surface a sign-in button without displacing the base provider.

  • Constructor Details

    • LoginDivController

      public LoginDivController(org.springframework.beans.factory.ObjectProvider<AuthMethodsProvider> authMethods, org.springframework.beans.factory.ObjectProvider<AuthMethodsContributor> contributors)
  • Method Details

    • login

      @GetMapping("/login") public Map<String,Object> login(@RequestParam(required=false) String theme)