MFA: Change GenerateSecretKey Response code from 403 to 201#1496
Open
asmithakarun wants to merge 2 commits into
Open
MFA: Change GenerateSecretKey Response code from 403 to 201#1496asmithakarun wants to merge 2 commits into
asmithakarun wants to merge 2 commits into
Conversation
GenerateSecretKeyRequired should behave similar to PasswordChangeRequired. Expecting 201 status code instead of 403 Change-Id: Iec6c925f04584b2cdd93aec743b04d6a8dbde4bc Signed-off-by: Jishnu CM <jishnunambiarcm@duck.com> Co-authored-by: Jishnu CM <jishnunambiarcm@duck.com>
GenerateSecretKeyRequired should behave similar to PasswordChangeRequired.
Expecting 201 status code instead of 403.
Tested by
curl --insecure -X POST -D headers.txt https://${bmc}/redfish/v1/SessionService/
Sessions -H "Content-Type: application/json" -d '{"UserName":"MFAUser",
"Password":"0penBmc0"}' -I
HTTP/1.1 201 Created
Allow: GET, HEAD, POST
OData-Version: 4.0
X-Auth-Token: PwGj0UUtSefbWsczZC2C
Location: /redfish/v1/SessionService/Sessions/OZvC3sXnEU
Strict-Transport-Security: max-age=31536000; includeSubdomains
Pragma: no-cache
Cache-Control: no-store, max-age=0
X-Content-Type-Options: nosniff
Content-Type: application/json
Date: Tue, 03 Mar 2026 12:35:22 GMT
Content-Length: 1493
Signed-off-by: cmjishnu <cmjishnu@gfwa166.aus.stglabs.ibm.com>
Co-authored-by: cmjishnu <cmjishnu@gfwa166.aus.stglabs.ibm.com>
Contributor
Author
|
Tested By:
|
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GenerateSecretKeyRequired error response should behave similar to that of PasswordChangeRequired.