package Ġcom . pap sign . ktor . open ap igen . modules . handlers Ċ Ċ import Ġcom . pap sign . ktor . open ap igen . Open API Gen Ċ import Ġcom . pap sign . ktor . open ap igen . model . operation . Operation Model Ċ import Ġcom . pap sign . ktor . open ap igen . model . security . Security Model Ċ import Ġcom . pap sign . ktor . open ap igen . modules . Module Provider Ċ import Ġcom . pap sign . ktor . open ap igen . modules . of Class Ċ import Ġcom . pap sign . ktor . open ap igen . modules . openapi . Operation Module Ċ import Ġcom . pap sign . ktor . open ap igen . modules . providers . Auth Provider Ċ Ċ object ĠAuth Handler : ĠOperation Module Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġconfigure ( api Gen : ĠOpenAPI Gen , Ġprovider : ĠModule Provider <* >, Ġoperation : ĠOperation Model ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġauth Handlers Ġ= Ġprovider . of Class < Auth Provider <* >>() ĊĠĠĠĠĠĠĠ Ġval Ġsecurity Ġ= Ġauth Handlers . flatMap Ġ{ Ġit . security Ġ}. distinct () ĊĠĠĠĠĠĠĠ Ġoperation . security Ġ= Ġsecurity . map Ġ{ ĠSecurity Model (). also Ġ{ Ġsec Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġit . forEach Ġ{ Ġsec [ it . scheme . name ] Ġ= Ġit . requirements Ġ} ĊĠĠĠĠĠĠĠ Ġ} Ġ} ĊĠĠĠĠĠĠĠ Ġapi Gen . api . components . security Schemes . put All ( security . flatMap Ġ{ Ġit . map Ġ{ Ġit . scheme Ġ} Ġ}. associate By Ġ{ Ġit . name Ġ}) ĊĠĠĠ Ġ} Ċ Ċ } Ċ