-
Notifications
You must be signed in to change notification settings - Fork 34
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
Quack creates db & users with localhost NOT using IP Address #240
Comments
@bobbeck55 , you don't need to add port 80 explicitly in the url - your browser (or CURL) will use 80 as a default value. auth.domain property - https://github.com/greatbit/quack/blob/master/api/src/main/resources/quack.properties#L17 - in your local config file should match the domain exactly. In your case it will be QuAck will work with one domain ONLY. It will be either your ip addres (or a DNS domain/CNAME), or Localhost. You can't use both at the same time. When QuAck is trying to authenticate a user, it gets a session id cookie from the request. Cookies are tightly coupled with domains. QuAck searches for cookies related to domain specified in the "auth.domain" property. Which means there might be only one domain for the service. |
Could you please share your quack.properties (you can omit private data such as service paths and credentials), command you are using to run the app and docker-compose.yaml if you are using docker compose. In that case I'll be able to identify what is not working faster. |
Please feel free to contact me directly via e-mail - [email protected] |
cmd: version: '2' mongod: volumes:
|
StubAuthProvider was created for testing and local development purposes and it just allows to authenticate an admin from config
It seems that you are using default config. Thats why you can only access it via localhost as it is a default auth domain. |
Azee,
I can login as root and create user bob with your change. When I logout
and attempt to login as user bob I get this error.
[image: image.png]
The log says "User session not found and will be prompt to authorize.
Bob
…On Wed, Feb 22, 2023 at 8:54 AM Azee ***@***.***> wrote:
1. Try changing
whoru.auth.provider=ru.greatbit.whoru.auth.providers.StubAuthProvider
to
—
Reply to this email directly, view it on GitHub
<#240 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZWTTVROXUOGJLGHDLSVAO3WYYLDFANCNFSM6AAAAAAVDOSI64>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@bobbeck55 Lats try narrowing down the problem |
Describe the bug
When I point my browser to "locahost:80" I can login to quack
and create db and users BUT if I point my browser to the ipaddr:80 I can't. Quack attempts
to login but gets "kicked out" by something. This happens when
my browser is internal to my VM and when it is run on my host machine.
Also - I would like to persist the db and users I create. How?
I have attached the quack startup log, docker-compose.yml, and quack.properties files.
The text was updated successfully, but these errors were encountered: