# Whitelabel Error Page

**URL:** <https://devforum.okta.com/t/whitelabel-error-page/25158>\
**Category:** SAML\
**Created:** [August 28, 2023, 1:23pm UTC](https://devforum.okta.com/t/whitelabel-error-page/25158 "2023-08-28T13:23:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rameh](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@Rameh](https://devforum.okta.com/u/Rameh)\
**Post date:** [August 28, 2023, 1:23pm UTC](https://devforum.okta.com/t/whitelabel-error-page/25158/1 "2023-08-28T13:23:50Z")

</div>

Hi,  
I have followed the following URL to setup my OktaDeveloper account and ServiceProvider application/configuration for SAML2 integration.

https : // [Get Started with Spring Boot and SAML | Okta Developer](http://developer.okta.com/blog/2022/08/05/spring-boot-saml)

When I access http : // localhost:8080, okta asks for login, once the login is successful I see following error shown

* * *

## Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. Mon Aug 28 18:39:11 IST 2023 There was an unexpected error (type=Not Found, status=404).

It seems the SAML authentication is successful and while showing the page (may be home.html) it is failing, though I have templates/home.html, HomeController.java file. Do I need to configure anything on top?

## The SpringBootSAML application log (excerpt) shows as follows

## 2023-08-28T18:39:09.179+05:30 DEBUG 31604 — [nio-8080-exec-7] o.s.s.web.DefaultRedirectStrategy : Redirecting to http : // localhost:8080/saml2/authenticate/okta 2023-08-28T18:39:09.189+05:30 DEBUG 31604 — [nio-8080-exec-8] o.s.security.web.FilterChainProxy : Securing GET /saml2/authenticate/okta 2023-08-28T18:39:11.462+05:30 DEBUG 31604 — [nio-8080-exec-9] o.s.security.web.FilterChainProxy : Securing POST /login/saml2/sso/okta 2023-08-28T18:39:11.470+05:30 DEBUG 31604 — [nio-8080-exec-9] .s.p.s.a.OpenSaml4AuthenticationProvider : Processing SAML response from http : // [www.okta.com/exkaybwhkee3NY69b5d7](http://www.okta.com/exkaybwhkee3NY69b5d7) 2023-08-28T18:39:11.476+05:30 DEBUG 31604 — [nio-8080-exec-9] .s.p.s.a.OpenSaml4AuthenticationProvider : **Successfully processed SAML Response** [id320227933509257031857964255] 2023-08-28T18:39:11.476+05:30 DEBUG 31604 — [nio-8080-exec-9] .s.ChangeSessionIdAuthenticationStrategy : Changed session id from 8AFF8F825A7738D02E5B01611AE8B2FD 2023-08-28T18:39:11.476+05:30 DEBUG 31604 — [nio-8080-exec-9] w.c.HttpSessionSecurityContextRepository : Stored SecurityContextImpl [Authentication=Saml2Authentication [Principal=org.springframework.security.saml2.provider.service.authentication.DefaultSaml2AuthenticatedPrincipal@3e91af0e, Credentials=[PROTECTED], **Authenticated=true** , Details=WebAuthenticationDetails [RemoteIpAddress=0:0:0:0:0:0:0:1, SessionId=8AFF8F825A7738D02E5B01611AE8B2FD], Granted Authorities=[ROLE\_USER]]] to HttpSession [org.apache.catalina.session.StandardSessionFacade@33a7295f] 2023-08-28T18:39:11.477+05:30 DEBUG 31604 — [nio-8080-exec-9] .p.s.w.a.Saml2WebSsoAuthenticationFilter : Set SecurityContextHolder to Saml2Authentication [Principal=org.springframework.security.saml2.provider.service.authentication.DefaultSaml2AuthenticatedPrincipal@3e91af0e, Credentials=[PROTECTED], Authenticated=true, Details=WebAuthenticationDetails [RemoteIpAddress=0:0:0:0:0:0:0:1, SessionId=8AFF8F825A7738D02E5B01611AE8B2FD], Granted Authorities=[ROLE\_USER]] 2023-08-28T18:39:11.477+05:30 DEBUG 31604 — [nio-8080-exec-9] o.s.s.web.DefaultRedirectStrategy : **Redirecting to http : // localhost:8080/?continue** 2023-08-28T18:39:11.486+05:30 DEBUG 31604 — [nio-8080-exec-5] o.s.security.web.FilterChainProxy : Securing GET /?continue 2023-08-28T18:39:11.486+05:30 DEBUG 31604 — [nio-8080-exec-5] w.c.HttpSessionSecurityContextRepository : Retrieved SecurityContextImpl [Authentication=Saml2Authentication [Principal=org.springframework.security.saml2.provider.service.authentication.DefaultSaml2AuthenticatedPrincipal@3e91af0e, Credentials=[PROTECTED], Authenticated=true, Details=WebAuthenticationDetails [RemoteIpAddress=0:0:0:0:0:0:0:1, SessionId=8AFF8F825A7738D02E5B01611AE8B2FD], Granted Authorities=[ROLE\_USER]]] 2023-08-28T18:39:11.486+05:30 DEBUG 31604 — [nio-8080-exec-5] o.s.s.w.s.HttpSessionRequestCache : Loaded matching saved request http : // localhost:8080/?continue 2023-08-28T18:39:11.487+05:30 DEBUG 31604 — [nio-8080-exec-5] o.s.security.web.FilterChainProxy : **Secured GET /?continue** 2023-08-28T18:39:11.487+05:30 DEBUG 31604 — [nio-8080-exec-5] o.s.security.web.FilterChainProxy : **Securing GET /error?continue** 2023-08-28T18:39:11.487+05:30 DEBUG 31604 — [nio-8080-exec-5] w.c.HttpSessionSecurityContextRepository : Retrieved SecurityContextImpl [Authentication=Saml2Authentication [Principal=org.springframework.security.saml2.provider.service.authentication.DefaultSaml2AuthenticatedPrincipal@3e91af0e, Credentials=[PROTECTED], Authenticated=true, Details=WebAuthenticationDetails [RemoteIpAddress=0:0:0:0:0:0:0:1, SessionId=8AFF8F825A7738D02E5B01611AE8B2FD], Granted Authorities=[ROLE\_USER]]] 2023-08-28T18:39:11.487+05:30 DEBUG 31604 — [nio-8080-exec-5] o.s.security.web.FilterChainProxy : **Secured GET /error?continue**

Any help is greately appreciated

Thanks

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 15, 2024, 11:46pm UTC](https://devforum.okta.com/t/whitelabel-error-page/25158/2 "2024-02-15T23:46:48Z")

</div>


