How to get token for a user that registered with identity provider

How can I get a token for a specific user that is linked to an identity provider without user password.
Is it possible?