Closed bdeva1975 closed 8 months ago
In which phase you get this error? Do you get it when you try to login using the Postman?
Yes. Also while trying to browse with http://localhost:8080/login.
The application worked prior to working on JWT.
Here is a trace for the issue:-
2024-01-19T14:24:44.273+05:30[0;39m [32mTRACE[0;39m [35m59952[0;39m [2m---[0;39m [2m[nio-8080-exec-1][0;39m [2m[0;39m[36mo.s.s.w.a.ExceptionTranslationFilter [0;39m [2m:[0;39m Sending AnonymousAuthenticationToken [Principal=anonymousUser, Credentials=[PROTECTED], Authenticated=true, Details=WebAuthenticationDetails [RemoteIpAddress=0:0:0:0:0:0:0:1, SessionId=A056EC940FC9AD070ED4183523CC45CB], Granted Authorities=[ROLE_ANONYMOUS]] to authentication entry point since access is denied
org.springframework.security.access.AccessDeniedException: Access Denied at org.springframework.security.web.access.intercept.AuthorizationFilter.doFilter(AuthorizationFilter.java:98) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:126) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:120) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:131) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:85) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:100) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:179) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374) ~[spring-security-web-6.2.1.jar:6.2.1] at com.packt.cardatabase.AuthenticationFilter.doFilterInternal(AuthenticationFilter.java:36) ~[main/:na] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.1.2.jar:6.1.2] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:107) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:93) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:91) ~[spring-web-6.1.2.jar:6.1.2] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.1.2.jar:6.1.2] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.security.web.header.HeaderWriterFilter.doHeadersAfter(HeaderWriterFilter.java:90) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:75) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.1.2.jar:6.1.2] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.security.web.context.SecurityContextHolderFilter.doFilter(SecurityContextHolderFilter.java:82) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.security.web.context.SecurityContextHolderFilter.doFilter(SecurityContextHolderFilter.java:69) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:62) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.1.2.jar:6.1.2] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.security.web.session.DisableEncodeUrlFilter.doFilterInternal(DisableEncodeUrlFilter.java:42) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.1.2.jar:6.1.2] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:233) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:191) ~[spring-security-web-6.2.1.jar:6.2.1] at org.springframework.web.filter.CompositeFilter$VirtualFilterChain.doFilter(CompositeFilter.java:113) ~[spring-web-6.1.2.jar:6.1.2] at org.springframework.web.servlet.handler.HandlerMappingIntrospector.lambda$createCacheFilter$3(HandlerMappingIntrospector.java:195) ~[spring-webmvc-6.1.2.jar:6.1.2] at org.springframework.web.filter.CompositeFilter$VirtualFilterChain.doFilter(CompositeFilter.java:113) ~[spring-web-6.1.2.jar:6.1.2] at org.springframework.web.filter.CompositeFilter.doFilter(CompositeFilter.java:74) ~[spring-web-6.1.2.jar:6.1.2] at org.springframework.security.config.annotation.web.configuration.WebMvcSecurityConfiguration$CompositeFilterChainProxy.doFilter(WebMvcSecurityConfiguration.java:225) ~[spring-security-config-6.2.1.jar:6.2.1] at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:352) ~[spring-web-6.1.2.jar:6.1.2] at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:268) ~[spring-web-6.1.2.jar:6.1.2] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:174) ~[tomcat-embed-core-10.1.17.jar:10.1.17] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149) ~[tomcat-embed-core-10.1.17.jar:10.1.17] at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-6.1.2.jar:6.1.2] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.1.2.jar:6.1.2] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:174) ~[tomcat-embed-core-10.1.17.jar:10.1.17] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149) ~[tomcat-embed-core-10.1.17.jar:10.1.17] at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-6.1.2.jar:6.1.2] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.1.2.jar:6.1.2] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:174) ~[tomcat-embed-core-10.1.17.jar:10.1.17] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149) ~[tomcat-embed-core-10.1.17.jar:10.1.17] at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-6.1.2.jar:6.1.2] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.1.2.jar:6.1.2] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:174) ~[tomcat-embed-core-10.1.17.jar:10.1.17] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149) ~[tomcat-embed-core-10.1.17.jar:10.1.17] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167) ~[tomcat-embed-core-10.1.17.jar:10.1.17] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90) ~[tomcat-embed-core-10.1.17.jar:10.1.17] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482) ~[tomcat-embed-core-10.1.17.jar:10.1.17] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:115) ~[tomcat-embed-core-10.1.17.jar:10.1.17] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93) ~[tomcat-embed-core-10.1.17.jar:10.1.17] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) ~[tomcat-embed-core-10.1.17.jar:10.1.17] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:340) ~[tomcat-embed-core-10.1.17.jar:10.1.17] at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:391) ~[tomcat-embed-core-10.1.17.jar:10.1.17] at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63) ~[tomcat-embed-core-10.1.17.jar:10.1.17] at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:896) ~[tomcat-embed-core-10.1.17.jar:10.1.17] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1744) ~[tomcat-embed-core-10.1.17.jar:10.1.17] at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) ~[tomcat-embed-core-10.1.17.jar:10.1.17] at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) ~[tomcat-embed-core-10.1.17.jar:10.1.17] at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) ~[tomcat-embed-core-10.1.17.jar:10.1.17] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-10.1.17.jar:10.1.17] at java.base/java.lang.Thread.run(Thread.java:833) ~[na:na]
[2m2024-01-19T14:24:44.277+05:30[0;39m [32mTRACE[0;39m [35m59952[0;39m [2m---[0;39m [2m[nio-8080-exec-1][0;39m [2m[0;39m[36mo.s.s.w.header.writers.HstsHeaderWriter [0;39m [2m:[0;39m Not injecting HSTS header since it did not match request to [Is Secure]
On Fri, Jan 19, 2024, 13:13 Juha Hinkula @.***> wrote:
In which phase you get this error? Do you get it when you try to login using the Postman?
— Reply to this email directly, view it on GitHub https://github.com/PacktPublishing/Full-Stack-Development-with-Spring-Boot-3-and-React-Fourth-Edition/issues/4#issuecomment-1899914881, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWJCHERWBCLDRADP4W4JTYLYPIP3XAVCNFSM6AAAAABCBN7R7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJZHEYTIOBYGE . You are receiving this because you authored the thread.Message ID: <PacktPublishing/Full-Stack-Development-with-Spring-Boot-3-and-React-Fourth-Edition/issues/4/1899914881 @github.com>
Can you share your source code to me?
I am using exactly your code that is available in GitHub chapter 5. I am not creating any new code.
On Fri, Jan 19, 2024, 15:58 Juha Hinkula @.***> wrote:
Can you share your source code to me?
— Reply to this email directly, view it on GitHub https://github.com/PacktPublishing/Full-Stack-Development-with-Spring-Boot-3-and-React-Fourth-Edition/issues/4#issuecomment-1900145978, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWJCHEWZVTXKSZUZTIVDDD3YPJDGHAVCNFSM6AAAAABCBN7R7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBQGE2DKOJXHA . You are receiving this because you authored the thread.Message ID: <PacktPublishing/Full-Stack-Development-with-Spring-Boot-3-and-React-Fourth-Edition/issues/4/1900145978 @github.com>
Another observation. My header POST request is getting converted into a GET request for which there are no requestMatchers.
On Fri, Jan 19, 2024, 16:04 Devasish Banerjee @.***> wrote:
I am using exactly your code that is available in GitHub chapter 5. I am not creating any new code.
On Fri, Jan 19, 2024, 15:58 Juha Hinkula @.***> wrote:
Can you share your source code to me?
— Reply to this email directly, view it on GitHub https://github.com/PacktPublishing/Full-Stack-Development-with-Spring-Boot-3-and-React-Fourth-Edition/issues/4#issuecomment-1900145978, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWJCHEWZVTXKSZUZTIVDDD3YPJDGHAVCNFSM6AAAAABCBN7R7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBQGE2DKOJXHA . You are receiving this because you authored the thread.Message ID: <PacktPublishing/Full-Stack-Development-with-Spring-Boot-3-and-React-Fourth-Edition/issues/4/1900145978 @github.com>
I just tested with Chapter 5 code from Github and everything works. I tested with Postman. Make sure that you are using double quotes in payload data (JSON)
Here is my screenshot [image: image.png]
On Fri, Jan 19, 2024 at 4:18 PM Juha Hinkula @.***> wrote:
I just tested with Chapter 5 code from Github and everything works. I tested with Postman. Make sure that you are using double quotes in payload data (JSON)
image.png (view on web) https://github.com/PacktPublishing/Full-Stack-Development-with-Spring-Boot-3-and-React-Fourth-Edition/assets/6865393/be935e71-b30c-4265-8b41-b27dc452cb84
— Reply to this email directly, view it on GitHub https://github.com/PacktPublishing/Full-Stack-Development-with-Spring-Boot-3-and-React-Fourth-Edition/issues/4#issuecomment-1900175481, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWJCHEUC72AWVNUNI62K3STYPJFPNAVCNFSM6AAAAABCBN7R7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBQGE3TKNBYGE . You are receiving this because you authored the thread.Message ID: <PacktPublishing/Full-Stack-Development-with-Spring-Boot-3-and-React-Fourth-Edition/issues/4/1900175481 @github.com>
I cannot see your image.
Will it be possible for you to share with your chapter 05 code without your database password of course?
On Fri, Jan 19, 2024, 16:28 Devasish Banerjee @.***> wrote:
On Fri, Jan 19, 2024 at 4:27 PM Juha Hinkula @.***> wrote:
I cannot see your image.
— Reply to this email directly, view it on GitHub https://github.com/PacktPublishing/Full-Stack-Development-with-Spring-Boot-3-and-React-Fourth-Edition/issues/4#issuecomment-1900188516, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWJCHEUZKZW5FXZ7VJV3D7TYPJGRLAVCNFSM6AAAAABCBN7R7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBQGE4DQNJRGY . You are receiving this because you authored the thread.Message ID: <PacktPublishing/Full-Stack-Development-with-Spring-Boot-3-and-React-Fourth-Edition/issues/4/1900188516 @github.com>
Sure, You can find it here https://github.com/juhahinkula/Chapter05.git
Same problem. I just copy and pasted your code with only changing my database password.
On Fri, Jan 19, 2024, 16:48 Juha Hinkula @.***> wrote:
Sure, You can find it here https://github.com/juhahinkula/Chapter05.git
— Reply to this email directly, view it on GitHub https://github.com/PacktPublishing/Full-Stack-Development-with-Spring-Boot-3-and-React-Fourth-Edition/issues/4#issuecomment-1900220955, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWJCHEWUVA7FE7ACYWNHP6DYPJJATAVCNFSM6AAAAABCBN7R7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBQGIZDAOJVGU . You are receiving this because you authored the thread.Message ID: <PacktPublishing/Full-Stack-Development-with-Spring-Boot-3-and-React-Fourth-Edition/issues/4/1900220955 @github.com>
Can you share the screenshot from your Postman (similar than I posted). You can also send it to me via email if that is better,
One thing I must appreciate. Your patience for me. Even if this issue remains unresolved, I would forever be grateful to you for your help.
On Fri, Jan 19, 2024, 16:59 Juha Hinkula @.***> wrote:
Can you share the screenshot from your Postman (similar than I posted). You can also send it to me via email if that is better,
— Reply to this email directly, view it on GitHub https://github.com/PacktPublishing/Full-Stack-Development-with-Spring-Boot-3-and-React-Fourth-Edition/issues/4#issuecomment-1900238806, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWJCHEXRHEYST5O6MA3TWUDYPJKLLAVCNFSM6AAAAABCBN7R7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBQGIZTQOBQGY . You are receiving this because you authored the thread.Message ID: <PacktPublishing/Full-Stack-Development-with-Spring-Boot-3-and-React-Fourth-Edition/issues/4/1900238806 @github.com>
On Fri, Jan 19, 2024 at 5:03 PM Devasish Banerjee @.***> wrote:
One thing I must appreciate. Your patience for me. Even if this issue remains unresolved, I would forever be grateful to you for your help.
On Fri, Jan 19, 2024, 16:59 Juha Hinkula @.***> wrote:
Can you share the screenshot from your Postman (similar than I posted). You can also send it to me via email if that is better,
— Reply to this email directly, view it on GitHub https://github.com/PacktPublishing/Full-Stack-Development-with-Spring-Boot-3-and-React-Fourth-Edition/issues/4#issuecomment-1900238806, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWJCHEXRHEYST5O6MA3TWUDYPJKLLAVCNFSM6AAAAABCBN7R7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBQGIZTQOBQGY . You are receiving this because you authored the thread.Message ID: <PacktPublishing/Full-Stack-Development-with-Spring-Boot-3-and-React-Fourth-Edition/issues/4/1900238806 @github.com>
Btw, Check that you have selected JSON from the dropdown in Postman (see my screenshot. It is this blue JSON text)
I have already done that and attached the screenshot in mail.
On Fri, Jan 19, 2024, 17:06 Juha Hinkula @.***> wrote:
Btw, Check that you have selected JSON from the dropdown in Postman (see my screenshot. It is this blue JSON text)
— Reply to this email directly, view it on GitHub https://github.com/PacktPublishing/Full-Stack-Development-with-Spring-Boot-3-and-React-Fourth-Edition/issues/4#issuecomment-1900250106, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWJCHEXXCK2OJH7JLIOSPSDYPJLD7AVCNFSM6AAAAABCBN7R7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBQGI2TAMJQGY . You are receiving this because you authored the thread.Message ID: <PacktPublishing/Full-Stack-Development-with-Spring-Boot-3-and-React-Fourth-Edition/issues/4/1900250106 @github.com>
Yes, but I cannot see your screenshot. Can you post is again
Already sent
On Fri, Jan 19, 2024 at 5:13 PM Devasish Banerjee @.***> wrote:
On Fri, Jan 19, 2024 at 5:12 PM Juha Hinkula @.***> wrote:
Yes, but I cannot see your screenshot. Can you post is again
— Reply to this email directly, view it on GitHub https://github.com/PacktPublishing/Full-Stack-Development-with-Spring-Boot-3-and-React-Fourth-Edition/issues/4#issuecomment-1900261770, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWJCHEUA7CRZZZ2OUNJLCWTYPJL3ZAVCNFSM6AAAAABCBN7R7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBQGI3DCNZXGA . You are receiving this because you authored the thread.Message ID: <PacktPublishing/Full-Stack-Development-with-Spring-Boot-3-and-React-Fourth-Edition/issues/4/1900261770 @github.com>
But image is not uploaded and I cannot see it. If you are answering via email it doesn't upload attachments here. You should paste it in the Github in the issues tab.
![Uploading SS.jpg…]()
I think I found the problem. It seems that you have maybe 'basic auth' selected in the Postman. Open the 'Authorization' tab in your postman (Tab where you have this green dot). The check that you select 'No Auth' from the drop down. Now this green dot should dissapear and everything works.
I just don't know how to thank you. It worked. However, how would it work in my browser?
On Fri, Jan 19, 2024, 17:26 Juha Hinkula @.***> wrote:
I think I found the problem. It seems that you have maybe 'basic auth' selected in the Postman. Open the 'Authorization' tab in your postman (Tab where you have this green dot). The check that you select 'No Auth' from the drop down. Now this green dot should dissapear and everything works.
— Reply to this email directly, view it on GitHub https://github.com/PacktPublishing/Full-Stack-Development-with-Spring-Boot-3-and-React-Fourth-Edition/issues/4#issuecomment-1900281508, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWJCHERQ5UV42OOJRRLNPUDYPJNQLAVCNFSM6AAAAABCBN7R7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBQGI4DCNJQHA . You are receiving this because you authored the thread.Message ID: <PacktPublishing/Full-Stack-Development-with-Spring-Boot-3-and-React-Fourth-Edition/issues/4/1900281508 @github.com>
You cannot test that in browser in this phase. It comes later when you develop the front end and login component.
I will close this issue.
Issue solved
Thanks a lot, once again!!
I am still getting the error message:-
Error: Full authentication is required to access this resource
I have copied and pasted the entire src folder and changed the password of my database. But it is still not working.