Interface AuthServerCreationHandler

All Known Implementing Classes:
DefaultAuthServerCreationHandler

public interface AuthServerCreationHandler
Service responsible for creating authorization servers and clients when a new application is created.

In order for this class to work, properties need to be defined. Default properties can be loaded as follows:

     broadleaf:
      auth:
       server-creation-defaults:
        {tenantId}:
         ...
 

To add a default used across all tenants, substitute {tenantId} with 'default'. Otherwise, this value should be the tenant ID.

To see configurable properties, see DefaultAuthServerProperties.AuthServerProperties

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handleAuthServerCreation(Application application, String friendlyName)
    Creates necessary authorization servers and clients when a new application is created.
  • Method Details

    • handleAuthServerCreation

      void handleAuthServerCreation(Application application, String friendlyName)
      Creates necessary authorization servers and clients when a new application is created.
      Parameters:
      application - The newly created application
      friendlyName - The user readable name to be used when creating the auth server and client.