vertx / io.vertx.ext.web.handler / BasicAuthHandler / create

# create

`open static fun create(authProvider: AuthProvider): AuthHandler`

Create a basic auth handler

### Parameters

`authProvider` - the auth provider to use

Return
the auth handler

`open static fun create(authProvider: AuthProvider, realm: String): AuthHandler`

Create a basic auth handler, specifying realm

### Parameters

`authProvider` - the auth service to use

`realm` - the realm to use

Return
the auth handler