Skip to content

Authentication api - #1

Merged
hzalaz merged 24 commits into
masterfrom
authentication-api
Jan 18, 2016
Merged

hzalaz merged 24 commits into
masterfrom
authentication-api

Conversation

@nikolaseu

Copy link
Copy Markdown
Contributor

No description provided.

The new password can optionally be added to the request using the setNewPassword method, but is not mandatory
The change_password endpoint allows to initiate a change password request without setting a new password
See https://auth0.com/docs/auth-api#!#post--dbconnections-change_password
This is mainly to allow making AuthenticationRequest and SignUpRequest implement the Request<> interface and standardize the way requests work
Is generic to allow using it with fully defined responses (like Auth0 delegations) or with any kind of delegation (use a Map<String,Object>)
This also allows us to make DelegationRequest implement the Request<> interface and make it work like any other request
@hzalaz

hzalaz commented Jan 18, 2016

Copy link
Copy Markdown
Contributor

@nikolaseu I am thinking of renaming DatabaseUser to something else, CreatedUser might be one or just plain User, thoughts?

@hzalaz

hzalaz commented Jan 18, 2016

Copy link
Copy Markdown
Contributor

Add javadocs for Delegation & Authentication classes

@nikolaseu

Copy link
Copy Markdown
Contributor Author

DatabaseUser/CreatedUser: CreatedUser seems better seeing that it's only used in createUser(), but both are long and kind of ugly.
User is fine but maybe too generic?

BTW, how can a just created user have a verified email? Maybe because it's used with another username? Is it allowed or these users are supposed to be merged?

@hzalaz

hzalaz commented Jan 18, 2016

Copy link
Copy Markdown
Contributor

@nikolaseu let's stick with the names as they are. User is too generic and people might confuse it with the profile.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's return a primitive value, also let's check if it can be a long since a timestamp wont fit in an intenger

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also doc that this value is in milliseconds

hzalaz added a commit that referenced this pull request Jan 18, 2016
@hzalaz
hzalaz merged commit b857227 into master Jan 18, 2016
@hzalaz
hzalaz deleted the authentication-api branch January 22, 2016 19:14
@hzalaz hzalaz modified the milestone: 0.3.0 Jun 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants