[Fixed] form based smart cloud authentication

Added extension point for customizing the form based endpoint
added sample implementation for w3 federated identities