wdonne / traefikoidc

BSD 2-Clause "Simplified" License
2 stars 2 forks source link

Bearer token header doesn't work from Postman #6

Closed phrontizo closed 3 months ago

phrontizo commented 3 months ago

I was testing this plugin with Postman, and discovered that using a bearer token always results in an "invalid token" issue and redirection to login. The issue seems to be: https://github.com/wdonne/traefikoidc/blob/28879155397541f8dfe8e05a9ce1bca36c2c2b13/oidc.go#L273

I think the string should be split on a space rather than empty string.

wdonne commented 3 months ago

You are right. It always falls back to the cookie because of this. Thanks for reporting.

wdonne commented 3 months ago

Fixed in v1.1.0.