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

Conversation

@jhericks
Copy link

@jhericks jhericks commented Jan 16, 2017

Fixes #1229

Getting a token from the REST API MAY include an id_token. This PR makes that token available in the API when present.

@jhericks jhericks changed the title #1229 Add id_token to OAuthGrantRequestAuthenticationResult Adderess #1229 Add id_token to OAuthGrantRequestAuthenticationResult Jan 16, 2017
@jhericks jhericks changed the title Adderess #1229 Add id_token to OAuthGrantRequestAuthenticationResult Fixes #1229 Add id_token to OAuthGrantRequestAuthenticationResult Jan 16, 2017
@dogeared dogeared changed the title Fixes #1229 Add id_token to OAuthGrantRequestAuthenticationResult Add id_token to OAuthGrantRequestAuthenticationResult Jan 16, 2017
* Returns the String that corresponds to the OpenID Connect id_token (if present) created during the Create Grant
* Authentication operation.
* @return the String representation of the OpenID Connect id_token
*/
Copy link
Member

Choose a reason for hiding this comment

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

@SInCE 1.4.0

Copy link
Author

Choose a reason for hiding this comment

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

Fixed.

static final StringProperty EXPIRES_IN = new StringProperty("expires_in");
static final StringProperty ACCESS_TOKEN_HREF = new StringProperty("stormpath_access_token_href");

static final Map<String, Property> PROPERTY_DESCRIPTORS = createPropertyDescriptorMap(ACCESS_TOKEN, REFRESH_TOKEN, EXPIRES_IN, TOKEN_TYPE, ACCESS_TOKEN_HREF);
Copy link
Member

Choose a reason for hiding this comment

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

don't you need to add ID_TOKEN to the PROPERTY_DESCRIPTORS Map?

Copy link
Author

Choose a reason for hiding this comment

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

Fixed, although the PROPERTY_DESCRIPTORS of this class seem to be unused in any code path. It only seems relevant in clearing CustomData and to the DefaultAccountModelFactory.

@jhericks jhericks merged commit eaffb61 into master Jan 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants