freeradius-oauth2-perl icon indicating copy to clipboard operation
freeradius-oauth2-perl copied to clipboard

Use of uninitialized value $v in concatenation (.) or string

Open AfBrainPlus opened this issue 2 years ago • 3 comments

Hello,

I keeps getting the following errors when running radiusd -X on AlmaLinux(It's the distro I as IT-admin primarly use in production) and then running radtest:

rlm_perl: oauth2 worker (brain-plus.com): token failed: 400 Bad Request
Use of uninitialized value $v in concatenation (.) or string at /usr/share/perl5/vendor_perl/Net/HTTP/Methods.pm line 161.
rlm_perl: oauth2 worker (****-***.com): users failed: 400 Bad Request
rlm_perl: oauth2 worker (****-***.com): sync groups
rlm_perl: oauth2 worker (****-***.com): groups page
rlm_perl: oauth2 worker (****-***.com): fetching token
rlm_perl: oauth2 worker (****-***.com): token failed: 400 Bad Request
Use of uninitialized value $v in concatenation (.) or string at /usr/share/perl5/vendor_perl/Net/HTTP/Methods.pm line 161.
rlm_perl: oauth2 worker (****-***.com): groups failed: 400 Bad Request

What to do?

AfBrainPlus avatar Jun 09 '22 14:06 AfBrainPlus

What does https://github.com/jimdigriz/freeradius-oauth2-perl#https-requests= (debug = yes) show?

No need to paste the secrets here, but are your client credentials correct?

Has this ever worked for you and just stopped working, or is this your first time?

jimdigriz avatar Jun 10 '22 11:06 jimdigriz

I've found the problem using the debug = yes, and it was the wrong value I had fetched for the application client ID

AfBrainPlus avatar Jun 13 '22 17:06 AfBrainPlus

Excellent, glad you figured it out!

I'll look to make the debugging output clearer when there it detects there is a problem with the credentials

jimdigriz avatar Jun 13 '22 20:06 jimdigriz