-
Notifications
You must be signed in to change notification settings - Fork 239
[Bug]: Something is up with authorization on the OpenAPI data sources #255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
As we worked heavy on OAuth (Generic Provider), these issues should be solved now. |
I have this issue in my instance, being unable to access the API with an API key. As an example, running the following curl \
--location 'http://<DOMAIN>//api/users/me' \
--header 'Accept: */*' \
--header 'Authorization: ey...<REST OF THE API KEY>' Returns as if the user is anonymous: {"code":1,"message":"","data":{
"id":null,
"orgAndRoles":null,
"currentOrgId":null,
"username":"anonymous",
"connections":null,
"uiLanguage":"en",
"avatar":null,
"avatarUrl":null,
"hasPassword":false,
"hasSetNickname":false,
"hasShownNewUserGuidance":false,
"userStatus":null,
"createdTimeMs":0,
"ip":"X.X.X.X",
"enabled":false,
"anonymous":true,
"orgDev":false,
"isAnonymous":true,
"isEnabled":false},
"success":true} |
Is there an existing issue for this?
Current Behavior
I've tried two OpenAPI specs:
apiKey
with anAuthorization
header)basic
)No matter the values I tried, I could never get the API's to properly authenticate. Whereas if I use the plain REST API and setup the authorization headers accordingly, the endpoint work fine.
Expected Behavior
The API's actually authenticate properly depending on their type.
Steps to reproduce
Use the above OpenAPI specs, or find something else you as a developer have access to, and try to get the different types of authorization to work.
Environment
No response
Additional Information
I've tried to go through the code and see if I could spot something glaringly wrong. I couldn't, but I have a feeling the authorization headers aren't properly set on the fetch-request.
That said, I will see if I can inspect it using the Inspector...Nope.The text was updated successfully, but these errors were encountered: