Skip to content

🐛 Fix SSO token lookup keys#565

Merged
shwethaumashanker merged 2 commits intofwdcloudsec:mainfrom
cedieio:fix-sso-token-lookup-keys
Dec 16, 2023
Merged

🐛 Fix SSO token lookup keys#565
shwethaumashanker merged 2 commits intofwdcloudsec:mainfrom
cedieio:fix-sso-token-lookup-keys

Conversation

@cedieio
Copy link
Copy Markdown
Contributor

@cedieio cedieio commented Dec 1, 2023

What changed?

Updated GetValidSSOToken to use a combination of SSOStartURL and SSOSessionName and GetValidSSOTokenFromPlaintextCache to use SSOStartURL for lookup keys

Why?

The lookup key for GetValidSSOToken has been updated and the code I pushed had the wrong lookup causing panic when trying to export sso as it was finding a nil token. Updated GetValidSSOToken to use the combination of SSOStartURL and SSOSessionName to find it properly. Also updated GetValidSSOTokenFromPlaintextCache to only use SSOStartURL as it's the valid value. Should move to use SSOSessionName in the future. Fix for issue #563.

How did you test it?

sudo make clean
sudo make go-binary
sudo make cli
dassume --export-sso-token

Potential risks

Is patch release candidate?

Link to relevant docs PRs

The lookup key for `GetValidSSOToken` has been updated and the code
I pushed had the wrong lookup causing panic when trying to export sso
as it was finding a `nil` token. Updated `GetValidSSOToken` to use
the combination of `SSOStartURL` and `SSOSessionName` to find it properly.
Also updated `GetValidSSOTokenFromPlaintextCache` to only use
`SSOStartURL` as it's the valid value. Should move to use `SSOSessionName`
in the future. Fix for issue fwdcloudsec#563.
Updated comment to also include SSOSessionName on the description.
@shwethaumashanker shwethaumashanker self-requested a review December 16, 2023 02:17
@shwethaumashanker shwethaumashanker merged commit d3fbf6a into fwdcloudsec:main Dec 16, 2023
sosheskaz pushed a commit to sosheskaz/granted that referenced this pull request Dec 19, 2023
* 🐛 Fix SSO token lookup keys

The lookup key for `GetValidSSOToken` has been updated and the code
I pushed had the wrong lookup causing panic when trying to export sso
as it was finding a `nil` token. Updated `GetValidSSOToken` to use
the combination of `SSOStartURL` and `SSOSessionName` to find it properly.
Also updated `GetValidSSOTokenFromPlaintextCache` to only use
`SSOStartURL` as it's the valid value. Should move to use `SSOSessionName`
in the future. Fix for issue fwdcloudsec#563.

* Update comment

Updated comment to also include SSOSessionName on the description.
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.

2 participants