Skip to main content

diana_auth 0.15.1 copy "diana_auth: ^0.15.1" to clipboard
diana_auth: ^0.15.1 copied to clipboard

Authentication and authorization for the Diana framework: pluggable JWT, Basic and API-key strategies plus @Secured/@RolesAllowed route guards.

Changelog #

0.15.1 #

  • Package metadata for pub.dev: MIT license, repository/documentation links, topics, and an example/.
  • Added a README; shorter pub.dev description; dart format applied.

0.15.0 #

  • RS256/JWKS verification in pure Dart: RsaPublicKey (JWK + PEM), Rs256TokenVerifier (static keys) and JwksTokenVerifier (IdP endpoint with caching, kid rotation and stale-while-error). Same hardening as HS256.
  • Breaking: TokenVerifier.verify returns FutureOr<Map<String, Object?>> (sync implementations unaffected).

0.14.0 #

  • Version bump only (kept in lockstep with the workspace).

0.13.0 #

  • Version bump only (kept in lockstep with the workspace).

0.12.0 #

  • Version bump only (kept in lockstep with the workspace).

0.11.0 #

  • Version bump only (kept in lockstep with the workspace).

0.10.0 #

  • Version bump only (kept in lockstep with the workspace).

0.9.0 #

  • Version bump only (kept in lockstep with the workspace).

0.8.1 #

  • JWT claim hardening: numeric sub accepted, malformed sub rejects as 401; a present but non-numeric (or non-finite) exp/nbf now rejects instead of crashing (500) or being silently skipped (fail-open).

0.8.0 #

  • Version bump only (kept in lockstep with the workspace).

0.7.0 #

  • Version bump only (kept in lockstep with the workspace).

0.6.0 #

  • Version bump only (kept in lockstep with the workspace).

0.5.0 #

  • Initial release: authentication and authorization for Diana (Spring Security analog).
  • AuthPrincipal, the Authenticator strategy interface and AuthenticationMiddleware (strategy chain, principal stamping, WWW-Authenticate challenges, authorizeMetadata gRPC seam).
  • Built-in strategies: JwtAuthenticator (in-package HS256 via Hs256TokenVerifier, pluggable TokenVerifier, Hs256TokenSigner), BasicAuthenticator (UserStore), ApiKeyAuthenticator (ApiKeyValidator).
  • SecuredGuard / RolesGuard behind @Secured / @RolesAllowed.
  • The only Diana package depending on package:crypto; never depends on package:grpc.
0
likes
160
points
154
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Authentication and authorization for the Diana framework: pluggable JWT, Basic and API-key strategies plus @Secured/@RolesAllowed route guards.

Repository (GitHub)
View/report issues

Topics

#authentication #authorization #jwt #security

License

MIT (license)

Dependencies

crypto, diana

More

Packages that depend on diana_auth