Merge "Implement logic for getCandidateCredentials API" into main