Implementing security requires to first define the security schemes in the design, see security in the Design section for details.
Service Security The service generated code define package functions for registering the security middlewares that actually implement the authorization. The functions are defined in the app package (unless the target package was overridden when running goagen) and follow naming pattern UseXXXMiddleware where XXX is the name of the security scheme, for example:
↧