Skip to content

Commit 1f1c039

Browse files
authored
fix: use scheme parameter
1 parent 75c35e9 commit 1f1c039

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

oas/oas.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func Authenticate(opts ...AuthenticatorOpt) openapi3filter.AuthenticationFunc {
104104
options.Configure(opts...)
105105

106106
return func(ctx context.Context, input *openapi3filter.AuthenticationInput) error {
107-
auth, ok := options.Schemas[input.SecurityScheme.Type]
107+
auth, ok := options.Schemas[input.SecurityScheme.Scheme]
108108
if !ok {
109109
return fiber.ErrForbidden
110110
}

0 commit comments

Comments
 (0)