ezralazuardy / heimdall

Painless OAuth 2.0 Server for CodeIgniter 4 🔥
https://heimdall.lazuardy.tech
MIT License
40 stars 10 forks source link

Fix Client Credentials Grant #3

Closed gitHusband closed 3 years ago

gitHusband commented 3 years ago

When you create a Authorization Server using the withClientCredentialsGrant function builder. See https://heimdall.ezralazuardy.com/documentation/client-credentials-grant Error is:

"title": "Heimdall\\Exception\\HeimdallConfigException",
"type": "Heimdall\\Exception\\HeimdallConfigException",
"code": 500,
"message": "Unknown Heimdall grant type, please recheck your parameter.",
"file": "vendor/ezralazuardy/heimdall/src/Heimdall.php",
"line": 56,
ezralazuardy commented 3 years ago

thanks for your contribution. I appreciate it. heimdall only support authorization code grant atm, that's why you'll get error when using other's authorization type. i'll review your commit as soon as possible. and hopefully, i can give support to all oauth 2 authorization type in heimdall for the next release.

codeclimate[bot] commented 3 years ago

Code Climate has analyzed commit 7d058f60 and detected 0 issues on this pull request.

View more on Code Climate.

ezralazuardy commented 3 years ago

i've check this pr and made a few improvement. Heimdall v0.0.3 is now released to fix the grant type bug. thanks for your contribution.