datamweb / shield-oauth

OAuth for CodeIgniter Shield
https://www.shield-oauth.codeigniter4.ir/
MIT License
61 stars 16 forks source link

Alow to configure shield-oauth inside a module #104

Open nicojmb opened 7 months ago

nicojmb commented 7 months ago

Hello,

In all my ci4 projects I try not to use the "app" folder, what I do is create a "modules" folder and then one for the module in question.

In this case, I have a module called "Auth", which is located in "./modules/Auth/" and there I have the Shield customizations and it works perfect.

I have also tried to put the Shield OAuth customizations, but I see that it does not work, looking at the code I see that it looks for the files within app/Config.

Is it possible to use Shield OAuth within a module?

Example of my folder esctructure:

image

datamweb commented 7 months ago

Hey @nicojmb

I have also tried to put the Shield OAuth customizations,

I don't understand what you mean by Shield OAuth customizations?

Is it possible to use Shield OAuth within a module?

Do you mean custom drivers?

nicojmb commented 7 months ago

Hey @nicojmb

I have also tried to put the Shield OAuth customizations,

I don't understand what you mean by Shield OAuth customizations?

Is it possible to use Shield OAuth within a module?

Do you mean custom drivers?

First, sorry for my bad english :(.

if you see in my screenshot: image

The files:

Are located in "./modules/Auth" directory, the problem is that in this location do not work, only work if a put in "App" directory.

datamweb commented 7 months ago

Thanks, this is not possible at the moment. We need changes in the code. I don't want to make any promises, but I might make the changes in my free time.. Or sending PR in this regard is welcome.