Giter Site home page Giter Site logo

masterspringboot's Introduction

masterspringboot's People

Contributors

fmarchioni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

masterspringboot's Issues

Spring Boot and Keycloak

Firstly thank you for all your efforts. I checked out your project from your blog "Securing Spring Boot application with Keycloak"

My Keycloak setup is a little different in that it is on another server. However I have configured everything exactly as you have explained. BTW I am also using Java 14, Spring Boot 2.5.0 and Keycloak 13.0.0

When I run the project unchanged and click on the Customer List link on the index page I get the following error:

javax.servlet.ServletException: Circular view path [customers]: would dispatch back to the current handler URL [/customers] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)

So I change the following in the controller:

        @GetMapping(path = "/listCustomers")
	public String getCustomers(Model model){
		model.addAttribute("customers", Arrays.asList("John Smith","Uncle Tom","Fred Flinstone"));
		return "customers";
	}

I also change the index.html:

        <a href="/listCustomers">Customer List</a>

and the application.properties:

        keycloak.security-constraints[0].securityCollections[0].patterns[0]=/listCustomers/*

However now I after I successfully login I get a Whitelabel Error Page when I actually expect to see the list of clustomers. There are no errors or logs that I can see.

What have I missed?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.