Skip to content

Authorize does not work and custom endpoints within bundle extensions #22

@ludi81

Description

@ludi81

Hi,

Thanks a lot for your plugin. It's almost perfekt ;)

I have two problems.

  1. I am not able to use Authorize to login to directus and therefore I am not able to test the endpoints.
    I tried to add Bearer eyJ...... in the HEADER section (second textfield) or the access_token textfield wit eyJ....
    I always get the error 401. On the server I receive the message "DEBUG: Invalid user credentials.".
    If I add the bearer to the url with access_token it works fine.

For example on the GET /presets there is the lock symbol at the right side. At this endpoint the Auhtorisation header will be send.
2023-11-29_19-24-48

But on the /users/me the lock is missing and therefore the header will not be send.
2023-11-29_19-26-09

How can I add the lock symbol to all endpoints.

  1. I generated a bundle extension in directus. It seams, your plugin does not load the files in the plugin folder 'src/endpoint_..'
    My only way to create end points was to create an dummy endpoint in the endpoints/test folder.

Do you have an idea how I can solve my problem?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions