authorizerdev / authorizer

Your data, your control. Fully open source, authentication and authorization. No lock-ins. Deployment in Railway in 120 seconds || Spin a docker image as a micro-service in your infra. Built in login page and Admin panel out of the box.
https://authorizer.dev
MIT License
1.61k stars 165 forks source link

client_id #437

Open signaltech opened 11 months ago

signaltech commented 11 months ago

successfully deployed the server

on local PC client_id is generated after login but when deployed on VPS the client_id is empty plus modified settings don't seem to be saved

lakhansamani commented 11 months ago

Are you trying to use it via IP address? If so HTTPS cookies are not allowed, hence we recommend using it with domain

signaltech commented 11 months ago

both with IP and with domain pointing to the IP

signaltech commented 11 months ago

@lakhansamani any solution?

lakhansamani commented 11 months ago

While accessing the app in browser pls use domain that will help

signaltech commented 11 months ago

@lakhansamani Yeah I am using domain is there a HTTPS requirement(using domain but no SSL installed in the server so just HTTP)

lakhansamani commented 11 months ago

HTTP should be fine however do u see errors in network request. Somehow it is not allowed to set cookies and that is creating problems

signaltech commented 11 months ago

@lakhansamani in the inspection console there is this error

Environment-Q72GB73P.js:1 Uncaught (in promise) TypeError: Cannot read properties of null (reading '_env') at Environment-Q72GB73P.js:1:33481 at Generator.next () at a (chunk-I2F2WLKQ.js:1:1222)

lakhansamani commented 10 months ago

@signaltech can you try the latest version Thanks

signaltech commented 9 months ago

@lakhansamani sorry I didn't respond. today I pulled the new changes and clean build but the error remains. thank you

signaltech commented 9 months ago

upon testing on firefox here is the console output(not shown in chrome)

users Some cookies are misusing the recommended “SameSite“ attribute 2 Cookie “authorizer-admin” does not have a proper “SameSite” attribute value. Soon, cookies without the “SameSite” attribute or with an invalid value will be treated as “Lax”. This means that the cookie will no longer be sent in third-party contexts. If your application depends on this cookie being available in such contexts, please add the “SameSite=None“ attribute to it. To know more about the “SameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite graphql Cookie “authorizer-admin” does not have a proper “SameSite” attribute value. Soon, cookies without the “SameSite” attribute or with an invalid value will be treated as “Lax”. This means that the cookie will no longer be sent in third-party contexts. If your application depends on this cookie being available in such contexts, please add the “SameSite=None“ attribute to it. To know more about the “SameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite graphql Cookie “authorizer-admin” has been rejected because a non-HTTPS cookie can’t be set as “secure”. graphql Cookie “authorizer-admin” has been rejected because a non-HTTPS cookie can’t be set as “secure”.

signaltech commented 9 months ago

install SSL certificate now it is working with HTTPS. thank you