TheNetworg / oauth2-azure

Azure AD provider for the OAuth 2.0 Client.
https://packagist.org/packages/thenetworg/oauth2-azure
MIT License
229 stars 108 forks source link

Set default algorithm through config #184

Closed philipdaveby closed 1 year ago

philipdaveby commented 1 year ago

Microsoft's identity platform uses the kty parameter for the encryption family, alg is omitted. This PR gives the ability to set a defaultAlgorithm when alg is not included.

Also passing in correct value to openssl_pkey_get_details() so it won't crash.

Resolves #172

BertVM52 commented 1 year ago

I can vouch for this PR. We had to apply the same fixes to get it to work. @hajekj

hajekj commented 1 year ago

Thank you for the contribution!