Endless redirects when using the spring example and a fusionauth cloud instance
-
Working through https://fusionauth.io/blog/2023/01/03/spring-and-fusionauth, it works fine when running locally, but when running with a FusionAuth cloud instance (or on any remote server), I get stuck in endless redirects after logging in.
-
I was able to recreate the "too many redirects" issue on my end. I received a couple of errors that I was able to resolve and get the app working.
The first error was this:
Unable to convert claim 'iss' of type 'class java.lang.String' to URL
.To fix this I made sure the issuer value on the Tenant level was a full URL (e.g.
https://fusionauth.io
instead offusionauth.io
).The next error I ran into after that was this:
Missing attribute 'name' in attributes
.To fix this one I just needed to make sure the user had a Full Name value on their profile. The default OIDC integration requires that.