Skip to content
This repository has been archived by the owner on Sep 12, 2021. It is now read-only.

Tests for CredentialsProvider #146

Merged
merged 1 commit into from
Mar 19, 2014
Merged

Tests for CredentialsProvider #146

merged 1 commit into from
Mar 19, 2014

Conversation

akkie
Copy link
Contributor

@akkie akkie commented Mar 16, 2014

@fernandoacorreia I've changed the return type from Future[Option[LoginInfo]] to Future[Try[LoginInfo]] because None doesn't describe the occurred error. The other alternative would be to return only a Future[LoginInfo] and throw Exceptions in case of an error, pretty much as we do it for all social providers. But I'm not sure if we should go this way, because the API doesn't describe that an error can occur. And in this case the error is an integral part of the authentication flow.

The other question is now, should we change the return type of the social providers too? So that the API describes also that an error can occur during authentication?

akkie added a commit that referenced this pull request Mar 19, 2014
Tests for CredentialsProvider
@akkie akkie merged commit 42bb031 into mohiva:master Mar 19, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant