Add: grantType to server based on indentifier

If $key is not provided Server::addGrantType is called, add the grant type base on qyery string identifier for better consistency