Skip to main content

spring_boot_starter_security 0.4.3 copy "spring_boot_starter_security: ^0.4.3" to clipboard
spring_boot_starter_security: ^0.4.3 copied to clipboard

Spring Security for the web starter: a filter chain configured with HttpSecurity, HTTP Basic, form login, sessions, CSRF, CORS, security headers, JWT resource servers.

0.4.3 #

  • JwtDecoders.fromIssuerLocation finds the issuer's metadata with the OAuth2 client's discovery (ClientRegistrations.configurationForIssuerLocation): the same locations and issuer check. A location the fetcher cannot read (a 404 of transportJwkFetcher included) now moves to the next, so the RFC 8414 metadata is found behind a missing OpenID Connect document. oauth2Login() is in the differential test against Spring Security 7.1.
  • oauth2Login(): single sign-on with OAuth 2.0 and OpenID Connect providers (Spring Security's OAuth2LoginConfigurer, OAuth2AuthorizationRequestRedirectFilter, OAuth2LoginAuthenticationFilter, OidcAuthorizationCodeAuthenticationProvider, HttpSessionOAuth2AuthorizationRequestRepository, the authorized client repositories, OidcClientInitiatedLogoutSuccessHandler); ID token signatures checked with the provider's JWK Set (OidcIdTokenDecoderFactory, also the oidcIdTokenDecoder bean); the default chain logs browsers in through the spring.security.oauth2.client.* registrations. The starter depends on and re-exports spring_boot_starter_oauth2_client, whose OAuth2Error, OAuth2AuthenticationException, OAuth2TokenValidator, OAuth2TokenValidatorResult and DelegatingOAuth2TokenValidator replace the starter's own (same signatures). defaultSuccessUrl, failure and logout URLs may be absolute (http://localhost:5050/). transportJwkFetcher.

0.4.2 #

  • Docs (#9)

0.4.1 #

  • feat: guides replace the examples; optional parameters from Dart nullability; coloured logs
  • feat: guides replace the examples; optional parameters from Dart nullability; coloured logs

0.4.0 #

  • Initial version: Spring Security for spring_boot_starter_web, secure by default like Spring Boot (every request needs a login; form login for browsers, HTTP Basic for other clients; one user from spring.security.user.* or a generated password; CSRF, security headers, logout). SecurityFilterChain beans built with HttpSecurity (authorizeHttpRequests on the router's path patterns, a request no rule matches is denied; httpBasic, formLogin, oauth2ResourceServer, csrf, cors, headers, sessionManagement, exceptionHandling, logout, securityMatcher), FilterChainProxy with a StrictHttpFirewall, sessions with a new id at login, JWT resource servers (RS, PS, ES and HS algorithms on Bouncy Castle's Dart port, JWK sets with key rotation, issuer discovery, spring.security.oauth2.resourceserver.jwt.*), errors as ProblemDetail with Spring's challenges, @AuthenticationPrincipal and @CurrentSecurityContext arguments. Tests: user(), jwt(), csrf(), httpBasic(), anonymous() for MockMvc. Compared with Spring Security 7.1 request by request; the differences are listed in the README.
0
likes
0
points
2.16k
downloads

Publisher

verified publisherfarum-azula.org

Weekly Downloads

Spring Security for the web starter: a filter chain configured with HttpSecurity, HTTP Basic, form login, sessions, CSRF, CORS, security headers, JWT resource servers.

Repository (GitHub)
View/report issues

Topics

#security #authentication #jwt #spring

License

unknown (license)

Dependencies

pointycastle, spring_boot_dart, spring_boot_starter_oauth2_client, spring_boot_starter_web, spring_security_core, spring_web_dart

More

Packages that depend on spring_boot_starter_security