Closed plakun closed 11 months ago
Unforunatly no :( we use ldapAuth only on one webserver with self-made backend that can't be published in internet. Can you reproduce issue with static page reload?
The examples dir uses static pages and I can't reproduce the error.
one webserver with self-made backend that can't be published in internet.
Would it be possible to provide a simple MRE based on this backend? Only one route/page it's enough.
Something like this main.py
from FastAPI
.
from typing import Union
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def read_root():
return {"Hello": "World"}
found the problem in our backend that prevented auth with ldap-auth-cookie. Thx for help.
Hello, we have a unsecured web-server with swagger and static pages. When i use ldapuath plugin to acces static page it shows me basic auth request and after entering credentials page opens. If i reload page, auth is required again, but i cant authenticate. After entering creds auth request opens again and again. Thats what i see in logs:
Same behavior is when i open swagger-ui page.
My config:
Try to test in Postman. First GET request to swagger-ui with basic auth headers gets 200\OK. Another request with same cookie that i'v got at first try gives me:
{"timestamp":"2023-08-31T08:49:36.511+00:00","status":401,"error":"Unauthorized","path":"/swagger-ui/index.html"}