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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Fix SSO token lookup keys #565

Merged
merged 2 commits into from Dec 16, 2023

Conversation

cedieio
Copy link
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 common-fate#563.
Updated comment to also include SSOSessionName on the description.
@shwethaumashanker shwethaumashanker merged commit d3fbf6a into common-fate: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 common-fate#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.

None yet

2 participants