Skip to content
This repository was archived by the owner on Dec 12, 2018. It is now read-only.

Commit c82ac67

Browse files
committed
Merge branch 'master' into AM-3581-social-login-v2
2 parents 7578eb0 + 24c8768 commit c82ac67

57 files changed

Lines changed: 217 additions & 80 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<groupId>com.stormpath.sdk</groupId>
2323
<artifactId>stormpath-sdk-root</artifactId>
24-
<version>1.2.0-SNAPSHOT</version>
24+
<version>1.2.1-SNAPSHOT</version>
2525
<relativePath>../pom.xml</relativePath>
2626
</parent>
2727

api/src/main/java/com/stormpath/sdk/account/Account.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import com.stormpath.sdk.resource.*;
4040
import com.stormpath.sdk.tenant.Tenant;
4141

42+
import java.util.Date;
4243
import java.util.Map;
4344

4445
/**
@@ -962,4 +963,11 @@ public interface Account extends Resource, Saveable, Deletable, Extendable, Audi
962963
* @since 1.1.0
963964
*/
964965
AccountLinkList getAccountLinks(AccountLinkCriteria criteria);
966+
967+
/**
968+
* Returns the date the last time this Account's password has been modified.
969+
* @return the date the last time this Account's password has been modified.
970+
* @since 1.2.0
971+
*/
972+
Date getPasswordModifiedAt();
965973
}

api/src/main/java/com/stormpath/sdk/account/Accounts.java

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ public static DateExpressionFactory createdAt(){
282282
* For example, the following code is equivalent:
283283
* <pre>
284284
* AccountCriteria criteria = Accounts.criteria();
285-
* DateExpressionFactory createdAt = Accounts.modifiedAt();
285+
* DateExpressionFactory modifiedAt = Accounts.modifiedAt();
286286
* Criterion modifiedAtMatches = modifiedAt.matches("[,2014-04-05T12:00:00]");
287287
* criteria.add(modifiedAtMatches);
288288
* </pre>
@@ -295,6 +295,33 @@ public static DateExpressionFactory modifiedAt(){
295295
return newDateExpressionFactory("modifiedAt");
296296
}
297297

298+
299+
/**
300+
* Creates a new {@link DateExpressionFactory} instance reflecting the Account {@link Account#getPasswordModifiedAt() passwordModifiedAt}
301+
* property, to be used to construct a modifiedAt Criterion when building an {@link AccountCriteria} query. For example:
302+
* <pre>
303+
* Accounts.where(<b>Accounts.passwordModifiedAt()</b>.matches("[,2014-04-05T12:00:00]");
304+
* </pre>
305+
* The above example invokes the returned factory's <code>matches("[,2014-04-05T12:00:00]"))</code> method. This
306+
* produces a name-specific {@link Criterion} which is added to the criteria query (via the
307+
* {@link #where(Criterion) where} method).
308+
* <pre>
309+
* For example, the following code is equivalent:
310+
* <pre>
311+
* AccountCriteria criteria = Accounts.criteria();
312+
* DateExpressionFactory passwordModifiedAt = Accounts.passwordModifiedAt();
313+
* Criterion modifiedAtMatches = passwordModifiedAt.matches("[,2014-04-05T12:00:00]");
314+
* criteria.add(passwordModifiedAt);
315+
* </pre>
316+
*
317+
* @return a new {@link Account#getModifiedAt() modifiedAt}-specific {@link DateExpressionFactory} instance, to be
318+
* used to construct a criterion when building an {@link AccountCriteria} query.
319+
* @since 1.2.0
320+
*/
321+
public static DateExpressionFactory passwordModifiedAt(){
322+
return newDateExpressionFactory("passwordModifiedAt");
323+
}
324+
298325
/**
299326
* This operation will ask the backend to do a case-insensitive matching query on all viewable attributes in all the resources in the Collection.
300327
*

changelog.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
## Change Log ##
22

3+
### 1.2.0 ##
4+
5+
This release has a number of feature additions and bug fixes. Of note:
6+
7+
* Support for [Account Linking](https://docs.stormpath.com/java/product-guide/latest/accnt_mgmt.html#account-linking)
8+
* Support for [Application WebConfig](https://docs.stormpath.com/java/apidocs/com/stormpath/sdk/application/webconfig/package-summary.html) - critical to interacting with the soon-to-be released Stormpath Client API
9+
* Support for OAuth2 [revocation](https://tools.ietf.org/html/rfc7009) in the SDK as well as in all integrations exposed at the `/oauth/revoke` endpoont
10+
* Support for Cross Origin Resource Sharing ([CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing)) entirely by configuration in all integrations using these properties:
11+
* stormpath.web.cors.enabled
12+
* stormpath.web.cors.allowed.originUris
13+
* stormpath.web.cors.allowed.headers
14+
* stormpath.web.cors.allowed.methods
15+
* Idiomatic support for the `passwordModifiedAt` field in the [Account](https://docs.stormpath.com/java/apidocs/com/stormpath/sdk/account/Account.html) interface in in search criteria on [Accounts](https://docs.stormpath.com/java/apidocs/com/stormpath/sdk/account/Accounts.html#passwordModifiedAt--)
16+
17+
See [1.2.0 closed issues](https://github.com/stormpath/stormpath-sdk-java/issues?q=milestone%3A1.2.0+is%3Aclosed) for a complete list of changes.
18+
319
### 1.1.5 ##
420

521
This release fixes two bugs. The first is a fix for the LinkedIn Social login integration. Login with LinkedIn was failing under certain conditions. The second is a fix for enabling the confirmPassword form field.

clover/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<groupId>com.stormpath.sdk</groupId>
2323
<artifactId>stormpath-sdk-root</artifactId>
24-
<version>1.2.0-SNAPSHOT</version>
24+
<version>1.2.1-SNAPSHOT</version>
2525
<relativePath>../pom.xml</relativePath>
2626
</parent>
2727

examples/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
<parent>
2222
<groupId>com.stormpath.sdk</groupId>
2323
<artifactId>stormpath-sdk-root</artifactId>
24-
<version>1.2.0-SNAPSHOT</version>
24+
<version>1.2.1-SNAPSHOT</version>
2525
<relativePath>../pom.xml</relativePath>
2626
</parent>
2727

2828
<artifactId>stormpath-sdk-examples</artifactId>
2929
<groupId>com.stormpath.sdk</groupId>
30-
<version>1.2.0-SNAPSHOT</version>
30+
<version>1.2.1-SNAPSHOT</version>
3131
<name>Stormpath Java SDK :: Examples</name>
3232
<packaging>pom</packaging>
3333

examples/quickstart/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<parent>
66
<groupId>com.stormpath.sdk</groupId>
77
<artifactId>stormpath-sdk-examples</artifactId>
8-
<version>1.2.0-SNAPSHOT</version>
8+
<version>1.2.1-SNAPSHOT</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

1212
<groupId>com.stormpath.sdk</groupId>
1313
<artifactId>stormpath-sdk-examples-quickstart</artifactId>
14-
<version>1.2.0-SNAPSHOT</version>
14+
<version>1.2.1-SNAPSHOT</version>
1515

1616
<name>Stormpath Java SDK :: Examples :: Quickstart Code</name>
1717
<description>A simple (non-web) application to demonstrate the example code in the Stormpath Java Quickstart</description>

examples/servlet/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
<parent>
2222
<groupId>com.stormpath.sdk</groupId>
2323
<artifactId>stormpath-sdk-examples</artifactId>
24-
<version>1.2.0-SNAPSHOT</version>
24+
<version>1.2.1-SNAPSHOT</version>
2525
<relativePath>../pom.xml</relativePath>
2626
</parent>
2727

2828
<artifactId>stormpath-sdk-examples-servlet</artifactId>
29-
<version>1.2.0-SNAPSHOT</version>
29+
<version>1.2.1-SNAPSHOT</version>
3030
<name>Stormpath Java SDK :: Examples :: Servlet Container-based Webapp</name>
3131
<description>A simple example webapp deployed in a servlet container.</description>
3232
<packaging>war</packaging>

examples/spring-boot-default/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
<parent>
2222
<groupId>com.stormpath.sdk</groupId>
2323
<artifactId>stormpath-sdk-examples</artifactId>
24-
<version>1.2.0-SNAPSHOT</version>
24+
<version>1.2.1-SNAPSHOT</version>
2525
<relativePath>../pom.xml</relativePath>
2626
</parent>
2727

2828
<groupId>com.stormpath.spring</groupId>
2929
<artifactId>stormpath-sdk-examples-spring-boot-default</artifactId>
30-
<version>1.2.0-SNAPSHOT</version>
30+
<version>1.2.1-SNAPSHOT</version>
3131

3232
<name>Stormpath Java SDK :: Examples :: Spring Boot Default</name>
3333
<description>A simple Spring Boot Web MVC application with out-of-the-box login and self-service screens!</description>

examples/spring-boot-webmvc-angular/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
<parent>
2222
<groupId>com.stormpath.sdk</groupId>
2323
<artifactId>stormpath-sdk-examples</artifactId>
24-
<version>1.2.0-SNAPSHOT</version>
24+
<version>1.2.1-SNAPSHOT</version>
2525
<relativePath>../pom.xml</relativePath>
2626
</parent>
2727

2828
<groupId>com.stormpath.spring</groupId>
2929
<artifactId>stormpath-sdk-examples-spring-boot-web-angular</artifactId>
30-
<version>1.2.0-SNAPSHOT</version>
30+
<version>1.2.1-SNAPSHOT</version>
3131

3232
<name>Stormpath Java SDK :: Examples :: Spring Boot + Angular Webapp</name>
3333
<description>A Spring Boot web application that uses Stormpath.</description>

0 commit comments

Comments
 (0)