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

Client management endpoints secured #198

Closed
Controlix opened this issue May 19, 2016 · 3 comments
Closed

Client management endpoints secured #198

Controlix opened this issue May 19, 2016 · 3 comments

Comments

@Controlix
Copy link

I have a very simple spring-boot application that uses spring-security to secure its management endpoints. The configuration in my application.yml file is

security:
  ignored: /
  user:
    name: demo
    password: demo

When I enter a management endpoint in my browser I get a popup that requests a username/password and after I enter the credentials I get the requested information.

Then I add the spring-boot-admin-client-starter to my project and I configure the spring.boot.admin.url.
After starting it up I can see the application in the admin UI. However when I want to see the details I get a popup asking me for a username/password. But whatever I enter it always fails.
If I cancel the popup I get an error message

status":401,"error":"Unauthorized","message":"Full authentication is required to access this resource"

I searched the issues related to secrity but could not figure out what I need to do to make this working.

I use spring-boot-admin-client-starter:1.3.3 and spring-boot-admin-sample:1.4.0-SNAPSHOT

@WillBDaniels
Copy link

looks like this is a bug with 1.3.3, switch over to 1.3.2 and it works fine as expected (credentials get passed properly)

@nabirkin
Copy link

nabirkin commented May 20, 2016

I have the same situation, but it doesn't work with 1.3.2 also.
My configuration:

  • for admin project:
server:
  port: 8081
security:
  user:
    name: admin
    password: admin
  • for client project:
server:
  port: 8080
spring:
  boot:
    admin:
      url: http://localhost:8081
      username: admin
      password: admin
security:
  basic:
    enabled: false
  user:
    name: user
    password: user

@joshiste
Copy link
Collaborator

duplicate of #192
Please see #192 for the fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants