Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add token accessor to wrap information if one exists #1520

Merged
merged 2 commits into from Jun 14, 2016

Conversation

jefferai
Copy link
Member

No description provided.

@jefferai jefferai modified the milestone: 0.6.0 Jun 14, 2016
@@ -393,6 +393,10 @@ func (c *Core) wrapInCubbyhole(req *logical.Request, resp *logical.Response) (*l
resp.WrapInfo.Token = te.ID
resp.WrapInfo.CreationTime = creationTime

if resp.Auth != nil {
Copy link
Member

Choose a reason for hiding this comment

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

A comment here would help understand that Auth will be non-nil only when a token is created and hence that is the only case when this will be set.

@vishalnayak
Copy link
Member

LGTM!

@jefferai jefferai merged commit 926e56e into master Jun 14, 2016
@jefferai jefferai deleted the wrapinfo-accessor branch June 14, 2016 05:54
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.

None yet

2 participants