Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AfBrainPlus opened this issue Jun 9, 2022 · 3 comments
Open

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

AfBrainPlus opened this issue Jun 9, 2022 · 3 comments
Assignees

Comments

@AfBrainPlus
Copy link

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?

@jimdigriz
Copy link
Owner

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?

@AfBrainPlus
Copy link
Author

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

@jimdigriz
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants