Skip to content

Conversation

@jderusse
Copy link
Member

Fix #1581

@shadowhand
Copy link
Contributor

@jderusse I can try this out sometime in the new few hours. Thank you!

@shadowhand
Copy link
Contributor

@jderusse took me a couple of hours, and a sleep, to realize that I had a configuration bug when testing this. Now that I have resolved that, I am happy to report that this PR works perfectly. 🎉

@jderusse jderusse merged commit 45227e0 into async-aws:master Jan 15, 2025
17 checks passed
@jderusse jderusse deleted the sso-credential branch January 15, 2025 09:02
@Nyholm Nyholm mentioned this pull request Jan 15, 2025
}

if (isset($profileData[IniFileLoader::KEY_SSO_START_URL])) {
if (class_exists(SsoClient::class)) {
Copy link
Member

Choose a reason for hiding this comment

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

this change the branches without inverting the condition

}

if (isset($profileData[IniFileLoader::KEY_SSO_SESSION])) {
if (!class_exists(SsoClient::class)) {
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't this check for SsoOidcClient instead ?

Copy link
Member Author

Choose a reason for hiding this comment

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

already addressed by #1833

512,
\JSON_BIGINT_AS_STRING | (\PHP_VERSION_ID >= 70300 ? \JSON_THROW_ON_ERROR : 0)
);
} catch (\JsonException $e) {
Copy link
Member

Choose a reason for hiding this comment

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

you also need the error handling for PHP 7.2 as it won't throw an error there.

@matthew-macgregor
Copy link

Just came here to say I was trying to get this to work yesterday on a work project (using the Symfony bundle), landed here, followed this trail and discovered the release for 1.25 (also yesterday!), pulled it in and it worked! Thank you! This solved the only downside to us adopting async-aws. 🎉 🚀

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.

SSO authentication with token provider configuration not working

4 participants