shield-oauth icon indicating copy to clipboard operation
shield-oauth copied to clipboard

Alow to configure shield-oauth inside a module

Open nicojmb opened this issue 1 year ago • 3 comments

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

nicojmb avatar Apr 06 '24 19:04 nicojmb

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?

datamweb avatar Apr 07 '24 19:04 datamweb

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:

  • Config/ShieldOAuthConfig.php
  • Libraries/ShieldOAuth/MicrosoftOAuth.php

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

nicojmb avatar Apr 07 '24 20:04 nicojmb

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.

datamweb avatar Apr 07 '24 20:04 datamweb