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

quando eu disparo: http://localhost:8080/api/clientes #2

Open
JoseRFJuniorLLMs opened this issue Jan 15, 2018 · 3 comments
Open

quando eu disparo: http://localhost:8080/api/clientes #2

JoseRFJuniorLLMs opened this issue Jan 15, 2018 · 3 comments

Comments

@JoseRFJuniorLLMs
Copy link

Ele pede usuário e senha. Startei o MongoDb., mesmo assim ! essa senha é do TomCat ?

{ "timestamp": 1516034256945, "status": 401, "error": "Unauthorized", "message": "Bad credentials", "path": "/api/clientes" }

image

@m4rciosouza
Copy link
Owner

Essa é a autenticação basic do Spring Boot, o usuário é "user" e a senha é exibida dinamicamente no console ao iniciar a aplicação.

@matheuslima5926
Copy link

Tem como desabilitar essa autenticação padrão?

@m4rciosouza
Copy link
Owner

Sim, adicione ao application.properties a seguinte configurarção:

security.basic.enabled=false

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