// Get an authenticator by the name it was registered. Not very useful outside
// of main() function.
Get an authenticator by the name it was registered. Not very useful outside
of main() function.
// Get an authenticator by the name it was registered . Not very useful outside // of main () function .
func GetAuthenticator(name string) (Authenticator, bool) {
	auth, ok := authenticators[name]
	if !ok {
		log.Printf("Authenticator \"%s\" does not exist.", name)
		log.Printf("")
		log.Printf("Valid options are:")
		for k, _ := range authenticators {
			log.Printf("%s", k)
		}
		log.Printf("")
		log.Printf("Check your settings.")
		return nil, false
	}
	return auth, true
}
func GetAuthenticator ( name string ) ( Authenticator , bool ) { auth , ok := authenticators [ name ] if ! ok { log . Printf ( " \" \" " , name ) log . Printf ( " " ) log . Printf ( " " ) for k , _ := range authenticators { log . Printf ( " " , k ) } log . Printf ( " " ) log . Printf ( " " ) return nil , false } return auth , true }
Get an authenticator by the name it was registered.
Get an authenticator by the name it was registered .