-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
2.2.4 Created admin token has no access #15564
Labels
Fixed in 2.2.x
The issue has been fixed in 2.2 release line
Fixed in 2.3.x
The issue has been fixed in 2.3 release line
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Comments
krukas
added a commit
to krukas/magento2
that referenced
this issue
May 30, 2018
When admin token lifetime setting is empty, the token will expire immediatly
vijay-wagento
pushed a commit
to vijay-wagento/magento2
that referenced
this issue
Jun 4, 2018
When admin token lifetime setting is empty, the token will expire immediatly
vijay-wagento
added a commit
to vijay-wagento/magento2
that referenced
this issue
Jun 4, 2018
[Forwardport] [BUGFIX] magento#15564 Generated admin API token expires immediately
Hi @krukas. Thank you for your report. The fix will be available with the upcoming 2.3.0 release. |
magento-engcom-team
pushed a commit
that referenced
this issue
Jun 21, 2018
…expires immediately #15744
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Fixed in 2.2.x
The issue has been fixed in 2.2 release line
Fixed in 2.3.x
The issue has been fixed in 2.3 release line
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
When you create a token for an admin user and have set the options (Admin Token Lifetime (hours)) to empty, you will get an access denied because the token immediately expires.
Preconditions
Steps to reproduce
Expected result
Actual result
For keeping the empty feature that is wont expire, we need to add a check for the token TTL: https://github.com/magento/magento2/blob/2.2-develop/app/code/Magento/Webapi/Model/Authorization/TokenUserContext.php#L135
If I have some time I will create a pull request for this.
The text was updated successfully, but these errors were encountered: