nextcloud / user_external

👥 External user authentication methods like IMAP, SMB and FTP
https://apps.nextcloud.com/apps/user_external
107 stars 64 forks source link

How to access this->request from user_external module? #250

Open joe-average-user opened 3 months ago

joe-average-user commented 3 months ago

Hello,

I am trying to write another module for user_external but need to access this->request data for it. I found out that the current code has no valid request field. Is there an easy way (probably inside my module) to gain access to this->request?

I read other apps, but did not really find an abstract doc for this. Maybe a more experienced app author can give me a hint?

Thank you for helping ...

violoncelloCH commented 3 months ago

I don't know, but I don't think that this is possible even for an app in Nextcloud, since only the index.php file gets access to this->request by default... why would you need access to that object?

joe-average-user commented 3 months ago

Lets say you want to process the remote IP address for some reason, how do you do that without this->request->getRemoteAddress() from OCP/IRequest ?