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

APP_DISABLE_AUTH not working #189

Open
maxdevis opened this issue Jan 30, 2020 · 14 comments
Open

APP_DISABLE_AUTH not working #189

maxdevis opened this issue Jan 30, 2020 · 14 comments

Comments

@maxdevis
Copy link

in my .env file i put:

APP_DISABLE_AUTH=true

my url is: http://127.0.0.1:80/odata.svc/Users

i just to call my model User
br
Max

@CyberiaResurrection
Copy link
Contributor

@maxdevis , thanks for opening a new issue.

Where exactly are you getting redirected? /odata.svc, or / ?

@maxdevis
Copy link
Author

maxdevis commented Jan 30, 2020

if in my browser i put: http://127.0.0.1:80/odata.svc/Users, laravel redirected to home page

br
max

@c-harris
Copy link
Member

What do you get at http://127.0.0.1:80/odata.svc

?

@maxdevis
Copy link
Author

honestly I have not tried to launch "http://127.0.0.1:80/odata.svc" tomorrow I try again and let you know.

br
Max

@maxdevis
Copy link
Author

hi, I launched the url in the browser and immediately afterwards a window appeared asking me if I wanted to save the file "odata.svc".
After saving in the file it was written this:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <service xml:base="http://127.0.0.1/odata.svc" xmlns:atom="http://www.w3.org/2005/Atom" xmlns="http://www.w3.org/2007/app"> <workspace> <atom:title>Default</atom:title> </workspace> </service>

@CyberiaResurrection
Copy link
Contributor

@maxdevis , can you grab #195 and see if that fixes your problem?

@c-harris
Copy link
Member

c-harris commented Feb 2, 2020

@maxdevis one thing I notice is that the model isn't in the list. Can you check that you have added the trait to the model and dumped an optimized autoload composer -o dump-autoload

@maxdevis
Copy link
Author

maxdevis commented Feb 3, 2020

Hello,
I checked and in the model I put:
"use\AlgoWeb\PODataLaravel\Models\ MetadataTrait;"

and in class:
MetadataTrait;

now i have optimized composer

but the result not change :(

br
Max

@c-harris
Copy link
Member

c-harris commented Feb 3, 2020

@CyberiaResurrection I may need your help with this one. @maxdevis appears to have covered all the basics clearly the Provider is booting but the model is not being loaded (as is evident by the service document)

Is it possible it could be a caching issue from before he optimized the sutoloader? If so how would he clear it?

Max. Is the User model in the App namespace?

@CyberiaResurrection
Copy link
Contributor

CyberiaResurrection commented Feb 3, 2020

@c-harris , the previous autoloader should have been flattened by the dump-autoload call. The namespace mismatch is about the only thing I can think of that's left.

@maxdevis , are you able to post a copy of your User model (the one you've been trying to access) ?

Also, can you try clearing your application's cache (in case some old cached metadata is getting in the way) with php artisan cache:clear ?

@maxdevis
Copy link
Author

ok,
I will try again to do what you told me and I will let you know.

Yours sincerely
Max

@c-harris
Copy link
Member

G'day @maxdevis ,

I have finished moving and I am happy to help try and revolves your issue. please accept my apology for the delay.

@c-harris
Copy link
Member

c-harris commented Mar 1, 2020

@maxdevis Did you get past this one or are you still stuck?

@maxdevis
Copy link
Author

maxdevis commented Mar 2, 2020 via email

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

3 participants