Closed earthwytch closed 1 year ago
Ok, I fixed it by removing the keystonePath: '/admin',
line from createAuth and changing all the relevant settings to match the removal of the /admin path:
Azure AD app registration callback url
http://localhost:3000/api/auth/callback/azure-ad
env variable
NEXTAUTH_URL=http://localhost:3000/api/auth
This fixed the CLIENT_FETCH_ERROR and allowed me to log in ๐
Thanks for the update @earthwytch
I have just released the latest version which should hopefully resolve your issue with using keystonePath
it is also know using @keystone-6/core@4
Let me know how you go. Thanks
I am about 80% through getting an Azure Active Directory user to log in after working through #238 ๐
http://localhost:3000
http://localhost:3000/admin/api/auth/signin
At this point I am redirected back to
http://localhost:3000/admin/api/auth/signin
with the sign in button visible. I can't go anywhere without being redirected back to this page again. I can't see any errors or 404s in the browser inspector.I am still receiving the following message in the console, though not sure if this is what is causing the issue:
These are my files.
keystone.ts
auth.ts
This is how the user table is set up in schema.ts:
And finally, these are the env vars I have set:
Is there anything I am missing? Thanks for your patience ๐