Hi all,
I have a problem with codegen when OpenID Connect security scheme is defined in spec:
security:
- oidc:
- openid
components:
securitySchemes:
oidc:
type: openIdConnect
openIdConnectUrl: <url>
The codegen generates such wrappers for all endpoints:
func (siw *ServerInterfaceWrapper) CreateResourceX(c *gin.Context) {
c.Set(OidcScopes, []string{"openid"})
for _, middleware := range siw.HandlerMiddlewares {
middleware(c)
}
siw.Handler.CreateResourceX(c)
}
context.Set accepts only strings as keys (and OidcScopes is an unknown thing for the compiler), so I suppose that it should be quoted.
Hi all,
I have a problem with codegen when OpenID Connect security scheme is defined in spec:
The codegen generates such wrappers for all endpoints:
context.Setaccepts only strings as keys (and OidcScopes is an unknown thing for the compiler), so I suppose that it should be quoted.