func (g AuthGroup) Validate(ctx context.Context, username, password string) (*authdb.UserContext, error) {
	return g.loop(ctx, func(store authdb.UserStore) (*authdb.UserContext, error) {
		return store.Validate(ctx, username, password)
	})
}
// Validate loops through each of the auth handlers, in the order passed to New,
// until the context is cancelled, in which case the context's error is returned.
// The first validation success returns. Errors are discarded unless all auth
// handlers fail to validate the user, in which case only the first error
// received will be returned.
Validate loops through each of the auth handlers, in the order passed to New,
until the context is cancelled, in which case the context's error is returned.
The first validation success returns. Errors are discarded unless all auth
handlers fail to validate the user, in which case only the first error
received will be returned.
// Validate loops through each of the auth handlers in the order passed to New // until the context is cancelled in which case the context ' s error is returned . // The first validation success returns . Errors are discarded unless all auth // handlers fail to validate the user in which case only the first error // received will be returned .
func (g AuthGroup) Validate(ctx context.Context, username, password string) (*authdb.UserContext, error) {
	return g.loop(ctx, func(store authdb.UserStore) (*authdb.UserContext, error) {
		return store.Validate(ctx, username, password)
	})
}
func ( g AuthGroup ) Validate ( ctx context . Context , username , password string ) ( * authdb . UserContext , error ) { return g . loop ( ctx , func ( store authdb . UserStore ) ( * authdb . UserContext , error ) { return store . Validate ( ctx , username , password ) } ) }
Validate loops through each of the auth handlers, in the order passed to New,
until the context is cancelled, in which case the context's error is returned.
Validate loops through each of the auth handlers in the order passed to New until the context is cancelled in which case the context ' s error is returned .