# Full authentication is required to access this resource (401)

**Code:** `Full authentication is required` · **Category:** Authentication · **Seen on:** Java, Spring Boot

The request reached a protected Spring endpoint without valid credentials, so the entry point answers 401.

## Meaning

`InsufficientAuthenticationException` from the `ExceptionTranslationFilter` means there is no authenticated principal. With a JWT or session setup, the token or cookie is missing or the filter did not run.

## Common causes

- No Authorization header or session cookie sent
- JWT filter not registered before `UsernamePasswordAuthenticationFilter`
- Endpoint not in the permitAll list
- Session expired

## Quick fix

1. Send the credentials or token
2. Register the custom filter in the chain
3. Add public paths to `permitAll()`

## Detailed fix by platform

### Spring Boot

1. `http.addFilterBefore(jwtFilter, UsernamePasswordAuthenticationFilter.class)`

## How to diagnose

1. **Header** — Is Authorization present?
2. **Filter** — Is the auth filter in the chain?
3. **Path** — Should this path be public?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/auth/spring-full-authentication-required)
