Skip to content
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

Can't know which user has made a search request #119

Open
raphaelbadawi opened this issue Oct 5, 2022 · 0 comments
Open

Can't know which user has made a search request #119

raphaelbadawi opened this issue Oct 5, 2022 · 0 comments

Comments

@raphaelbadawi
Copy link

Hello,

I have been struggling with the directory endpoint configured under the rest entry in ma1sd.yaml. In our current server configuration, it sends the request to a PHP application in another server.

But in this PHP application, the only data we actually receive are the "by" and "searchTerm" fields, which matches the structure of the class UserDirectorySearchRequest. But with this data we have no clue who did the search and thus we can't apply access rules in our response. Indeed, it's always the string "name" we get as a value under the "by" key.

I saw in DirectoryManager.java l. 82 that an "access_token" parameter is actually put in the URI with the POST request, but it's nowhere to be found in the data the requested server receives.

How can we know which user actually sent the request?

Thanks for you help,
Raphaël.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant