Configure rlm_rest module to allow token authentication
Zenon Mousmoulas
zmousm at noc.grnet.gr
Tue Jul 10 12:37:04 CEST 2018
July 10, 2018 1:18 PM, "Rohith Asrk" <rohith.asrk at gmail.com> wrote:
> I actually think I got my basics wrong here. Sorry for all the confusion.
> Please ignore the previous mail.
>
> What I actually need is configuring the FreeRADIUS daemon to send requests
> to the API. And the API here needs token in the form of a authorization
> header or a querystring.
>
> Can I configure FreeRADIUS to send HTTP requests to the API with bearer
> authorization in the headers? As of now, the rest module configuration
> looks like this
> <http://django-freeradius.readthedocs.io/en/latest/general/freeradius.html>
> [1].
>
> The API is going to check for tokens in the headers or in the query strings
> and we want the FreeRADIUS instance to be an authorized user.
No mention of HTTP auth in the linked doc.
So rlm_rest supports a number of options for that, but not bearer. Just adding that as a header might work though:
https://github.com/FreeRADIUS/freeradius-server/blob/v3.0.x/raddb/mods-available/rest#L84
More information about the Freeradius-Users
mailing list