rwth-acis / las2peer

A Java-based decentralized framework for distributing community services in a peer-to-peer infrastructure.
https://las2peer.org
Other
52 stars 13 forks source link

[BUG] Authorization header not set correctly #128

Open lakhoune opened 2 years ago

lakhoune commented 2 years ago

When looking through the source code of the las2peer node fronten, I stumbled upon the following line

            'Basic ' + btoa(prefixedIdentifier + ':' + credentials.oidcSub),

when setting the Authorization header when logging in (see here ) Isnt this wrong? The way I see it the authorization Header would have the form

 'Basic ' + btoa('OIDC_SUB'+<your sub>+':'+<your sub>),

but shouldn't it be:

 'Basic ' + btoa(<your username>+':'+<your sub>),

@AlexanderNeumann