-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Sample doesn't take adminContextPath
in to account for csrf config
#894
Comments
What version of springboot you are running with? |
I'm using |
I'd guess
must be:
due to the fact, that metadata is a map of strings... |
I tried this way:
But the same error occurs |
Without a project to reproduce the issue it's hard to tell where you made a mistake. Please provide a project to reproduce the issue. |
I cleaned the project, keeping only the spring boot admin configs. The error remains. The project follows: |
It's also wrong in the docs. I'll fix that |
adminContextPath
in to account for csrf config
Now it works. Thanks @joshiste |
@joshiste My dependencies version info: I use But sba client still failed to register application for the same reason 401 null. |
I am developing according with documentation: https://codecentric.github.io/spring-boot-admin/2.0.2, but i don't getting register a client in a secure application.
My configuration are:
application.yml
WebSecurityConfiguration
And the error is occurring:
2018-08-22 00:44:21.770 DEBUG 9616 --- [gistrationTask1] d.c.b.a.c.r.ApplicationRegistrator: Failed to register application as Application(name=template-api, managementUrl=http://localhost:8080/actuator, healthUrl=http://localhost:8080/actuator/health, serviceUrl=http://localhost:8080/) at spring-boot-admin ([http://localhost:8080/admin/instances]): 401 null
Can someone please help with this
401
?The text was updated successfully, but these errors were encountered: