infiniflow / ragflow

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine based on deep document understanding.
https://ragflow.io
Apache License 2.0
22.85k stars 2.24k forks source link

[Feature Request]: Token does not require array for verification #2594

Open baifachuan opened 1 month ago

baifachuan commented 1 month ago

Is there an existing issue for the same feature request?

Is your feature request related to a problem?

No response

Describe the feature you'd like

image

our token doese not bearer or access token need to parsed.

Arrays can cause significant interference, such as how to pass them?

Describe implementation you've considered

No response

Documentation, adoption, use case

No response

Additional information

No response

baifachuan commented 1 month ago

bearer token format is:

Authorization: Bearer xxxx

this code:

token = request.headers.get('Authorization').split()[1]

can not parsed the bearer token.

supersoulsoul commented 1 month ago

@baifachuan This issue still exists in the main branch.