Hi,
We've defined a yaml file with Swagger version 2.0 with the following security definitions:
securityDefinitions:
UserNameSecurity:
type: apiKeyin: headername: X-API-USERNAMEPasswordSecurity:
type: apiKeyin: headername: X-API-PASSWORDTenantSecurity:
type: apiKeyin: headername: X-API-TENANTsecurity:
- UserNameSecurity: []
- PasswordSecurity: []
- TenantSecurity: []
After compiling it using Swagger JAVA compiler version 2.2.3 we see the security labels as annotations in all the operation, but we can't access the values entered for them in the request header.
@io.swagger.annotations.Authorization(value = "PasswordSecurity"),
@io.swagger.annotations.Authorization(value = "TenantSecurity"),
@io.swagger.annotations.Authorization(value = "UserNameSecurity")
Do you know how can the apiKey values, supplied in the header, can be accessed in the generated code?
Thanks,
Kfir
Hi,
We've defined a yaml file with Swagger version 2.0 with the following security definitions:
After compiling it using Swagger JAVA compiler version 2.2.3 we see the security labels as annotations in all the operation, but we can't access the values entered for them in the request header.
@io.swagger.annotations.Authorization(value = "PasswordSecurity"),
@io.swagger.annotations.Authorization(value = "TenantSecurity"),
@io.swagger.annotations.Authorization(value = "UserNameSecurity")
Do you know how can the apiKey values, supplied in the header, can be accessed in the generated code?
Thanks,
Kfir