Add flexibilty to the provider and manager

This PR allow to override the provider definition and add flexibility to the user identity in the token.