freeradius-oauth2-perl
freeradius-oauth2-perl copied to clipboard
Use of uninitialized value $v in concatenation (.) or string
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?
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?
I've found the problem using the debug = yes, and it was the wrong value I had fetched for the application client ID
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