Implement authentication using credentials

Hi ,
How to implement authentication using an Id other than bucket name.