Extract credentials