Added support for signature secret in client credentials and fixed hash generation.