spring_boot_starter_security 0.4.3
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.fromIssuerLocationfinds 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 oftransportJwkFetcherincluded) 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'sOAuth2LoginConfigurer,OAuth2AuthorizationRequestRedirectFilter,OAuth2LoginAuthenticationFilter,OidcAuthorizationCodeAuthenticationProvider,HttpSessionOAuth2AuthorizationRequestRepository, the authorized client repositories,OidcClientInitiatedLogoutSuccessHandler); ID token signatures checked with the provider's JWK Set (OidcIdTokenDecoderFactory, also theoidcIdTokenDecoderbean); the default chain logs browsers in through thespring.security.oauth2.client.*registrations. The starter depends on and re-exportsspring_boot_starter_oauth2_client, whoseOAuth2Error,OAuth2AuthenticationException,OAuth2TokenValidator,OAuth2TokenValidatorResultandDelegatingOAuth2TokenValidatorreplace 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 fromspring.security.user.*or a generated password; CSRF, security headers, logout).SecurityFilterChainbeans built withHttpSecurity(authorizeHttpRequestson the router's path patterns, a request no rule matches is denied;httpBasic,formLogin,oauth2ResourceServer,csrf,cors,headers,sessionManagement,exceptionHandling,logout,securityMatcher),FilterChainProxywith aStrictHttpFirewall, 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 asProblemDetailwith Spring's challenges,@AuthenticationPrincipaland@CurrentSecurityContextarguments. Tests:user(),jwt(),csrf(),httpBasic(),anonymous()forMockMvc. Compared with Spring Security 7.1 request by request; the differences are listed in the README.