spring_security_core 0.8.3
spring_security_core: ^0.8.3 copied to clipboard
Spring Security for Dart: the security context, users, password encoders (Argon2, PBKDF2, scrypt) and method security with @PreAuthorize on bean methods.
0.8.3 #
- No changes of its own; released with the family version 0.8.3.
0.8.2 #
- No changes of its own; released with the family version 0.8.2.
0.8.1 #
- No changes of its own; released with the family version 0.8.1.
0.8.0 #
ZoneSecurityContextHolderStrategy.onProgramWideAuthenticationis told, with the place, each time an authentication is set outside every scope (into the one context of the whole program), andprogramWideAuthenticationis who is there now. In a Flutter app that is the login; on a server it is how one user's identity outlives the work it was for, and the security starter logs it. Nothing is told by default, and nothing is refused.testing.dart:withMockUsersAtOnce(usernames, body, rounds:)runs a body as several users at the same time, the calls overtaking each other at theirawaits, and returns what each got: the test of "one user never sees another's" (a bean that remembers the user in a field, a cache key without the user, a shared result).programWideAuthentication()is the authentication left outside every scope, to expectnullof after a test.OAuth2Token: what every OAuth 2.0 token has (tokenValue,issuedAt,expiresAt), Spring'sOAuth2Token; the OAuth2 client'sAbstractOAuth2Tokenand the security starter'sJwtimplement it.LoginSession: the login of the current user of a client application, whatever the provider (authentication,isLoggedIn,authenticationChanges,accessToken(),restore(),logout()); an interface only.SecretStoreandInMemorySecretStore, moved here fromspring_boot_starter_flutter_security(which still exports them): a provider's login can keep its tokens without depending on Flutter.AuthorizationWindowandAuthorizationCancelledException, moved here fromspring_boot_starter_flutter_security(which still exports them).sha256Digest(bytes)andpkceS256Challenge(verifier): SHA-256 and theS256code challenge of PKCE (RFC 7636), for a login that is not built on the OAuth2 client.
0.7.4 #
SecurityContextChangedEventnames itself (eventName), readable in a release build.
0.7.3 #
- No changes of its own; released with the family version 0.7.3.
0.7.2 #
- README: the link goes to the package's own page on farum-azula.org, and what the README says was checked against the code and brought up to date.
- The package's page on pub.dev links its documentation, farum-azula.org (
documentationinpubspec.yaml).
0.7.1 #
- No changes of its own; released with the family version 0.7.1.
0.7.0 #
- No changes of its own: its generated code (
lib/spring_gen/) is regenerated with spring_core_dart_generator 0.7.0.
0.6.3 #
Changes #
- The editor metadata of
spring.security.password-checks.*is made from code and the package reads the same class:PasswordChecksPropertiesis bound by the Binder. The hand-writtenspring_metadata_additional.jsonis gone.
0.6.2 #
- No changes of its own; released with the family version 0.6.2.
0.6.1 #
- No changes of its own; released with the family version 0.6.1.
0.6.0 #
Changes #
- The PBKDF2 derivation (HMAC-SHA-1, -256 and -512) is checked against Project Wycheproof's vectors (Apache-2.0,
test/fixtures/wycheproof/): all match. - Debug and trace lines in Spring Security's words:
Authenticating request with UsernamePasswordAuthenticationToken (1/1)(trace),Failed to find user 'ada'andFailed to authenticate since password does not match stored value(debug; the user name goes throughLogFormatUtils, the password is never logged),Failed to authenticate since Bad credentials, and a denied method call (@PreAuthorize,@Secured). The old debug text for a wrong password is now Spring's.
0.5.0 #
Changes #
PasswordCheckLimiter: the password checks ofDaoAuthenticationProviderrun at most half the processors at once (spring.security.password-checks.max-concurrent) with eight times that waiting (spring.security.password-checks.max-queued); another one fails at once withPasswordChecksBusyException, without hashing. Each check had an isolate of its own without a bound, so a flood of logins with wrong passwords took every core of the machine and more memory with each request. The auto-configured manager uses thepasswordCheckLimiterbean; providers made in code usePasswordCheckLimiter.sharedunless given one. Not in Spring.
0.4.3 #
PreAuthenticatedAuthenticationToken(Spring's, ofspring-security-web): a login another system has checked, such as the server of a Flutter web app (spring_boot_starter_flutter_security).GrantedAuthoritiesMapperandNullAuthoritiesMapper(Spring'sorg.springframework.security.core.authority.mapping), for logins through other systems such as OAuth 2.0 (spring_boot_starter_oauth2_client).
0.4.2 #
- Docs (#9)
0.4.1 #
- feat: guides replace the examples; optional parameters from Dart nullability; coloured logs
0.4.0 #
- Initial version: Spring Security's core for servers and Flutter apps.
SecurityContextHolderkept perZone(with one global context outside every scope),Authenticationand its tokens, users (UserDetails,User.withUsername,UserDetailsService,InMemoryUserDetailsManager),AuthenticationManager,ProviderManagerandDaoAuthenticationProvider(no user enumeration by message or timing, hashes upgraded at login, hashing on another isolate), authentication events. Password encoders on Bouncy Castle's Dart port (pointycastle): Argon2 (the default), PBKDF2, scrypt and the delegating encoder, in Spring Security's formats (hashes checked both ways against Spring Security 7.1). Method security:@PreAuthorize,@PostAuthorize,@Secured,@PreFilterand@PostFilteron bean methods with SpEL (hasRole,principal, arguments,returnObject,hasPermission, beans), always on, every expression parsed at startup, run before@Cacheable;RoleHierarchy,GrantedAuthorityDefaults. Tests:withMockUser,withAuthentication,withAnonymousUser.