Do you really need the context? You could better inject directly the Identity and the Credential supplier.