6 SSO non-intrusive development example
Through the interface interception function of
WeaverBoot IOC
, developer can configure the interception API address to perform interface pre-interception and post-interception operations This is used to achieve single sign-on for ecology without intrusion, and is usually used to connect to third-party authentication schemes
1 Preparation
Scan range
Pre-dependency
Need install the latest e-code package
2 Intercept class configuration
The interception class needs to be annotated with the @WeaSsoIocComponent
annotation, and the name can be written in the annotation, and the container will inject this class according to this name. By default, it will be injected according to the path of the class, as shown in the following example
3 SSO method usage
The pre-method is the operation that will be executed before the interface is executed
The specific configuration method is as follows:
Last updated