jaguar_session_jwt 1.3.2

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 50

jaguar_session_jwt

JWT session managers for Jaguar

JWT session on Cookie

JWT based session manager with Cookie as transport mechanism. This session manager stores all session as JWT token on a Cookie.

  1. cookieName Name of the Cookie on which the session data is stored.
  2. config JWT configuration used to issue a JWT token
  3. validationConfig Information required to validate a JWT token

Using JwtCookieSession

server() async {
  final jaguar =
      new Jaguar(sessionManager: new JwtCookieSession(jwtConfig));
  jaguar.addApi(reflect(new LibraryApi()));
  await jaguar.serve();
}

JWT session on authorization header

JWT based session manager with authorization header as transport mechanism. This session manager stores all session as JWT token on authorization header.

  1. config JWT configuration used to issue a JWT token
  2. validationConfig Information required to validate a JWT token

Using JwtHeaderSession

server() async {
  final jaguar =
      new Jaguar(port: 10000, sessionManager: new JwtHeaderSession(jwtConfig));
  jaguar.addApi(reflect(new LibraryApi()));
  await jaguar.serve();
}

Changelog

0.1.3

  • Bug fix session cookie path

0.1.2

  • Use improvements to Session in Jaguar 0.6.18 to improve performance

0.1.1

  • Docs

0.1.0

  • JwtCookieSession
  • JwtHeaderSession

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  jaguar_session_jwt: "^1.3.2"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:jaguar_session_jwt/jaguar_session_jwt.dart';
        
Version Uploaded Documentation Archive
1.3.2 Feb 2, 2018 Go to the documentation of jaguar_session_jwt 1.3.2 Download jaguar_session_jwt 1.3.2 archive
1.3.1 Feb 2, 2018 Go to the documentation of jaguar_session_jwt 1.3.1 Download jaguar_session_jwt 1.3.1 archive
1.2.6 Jan 13, 2018 Go to the documentation of jaguar_session_jwt 1.2.6 Download jaguar_session_jwt 1.2.6 archive
1.1.5 Jan 11, 2018 Go to the documentation of jaguar_session_jwt 1.1.5 Download jaguar_session_jwt 1.1.5 archive
0.1.3 Nov 5, 2017 Go to the documentation of jaguar_session_jwt 0.1.3 Download jaguar_session_jwt 0.1.3 archive
0.1.2 Nov 5, 2017 Go to the documentation of jaguar_session_jwt 0.1.2 Download jaguar_session_jwt 0.1.2 archive
0.1.1 Nov 4, 2017 Go to the documentation of jaguar_session_jwt 0.1.1 Download jaguar_session_jwt 0.1.1 archive
0.1.0 Nov 4, 2017 Go to the documentation of jaguar_session_jwt 0.1.0 Download jaguar_session_jwt 0.1.0 archive

Analysis

This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • completed on Feb 3, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
0 / 100
Health:
Code health derived from static analysis. [more]
100 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
50

Platforms

Detected platforms: Flutter, other

Primary library: package:jaguar_session_jwt/jaguar_session_jwt.dart with components: io.

Suggestions

  • Fix analysis_options.yaml.

    We were unable to parse analysis_options.yaml.

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use jaguar_session_jwt.dart.

  • Enable strong mode analysis.

    Strong mode helps you to detect bugs and potential issues earlier.Start your analysis_options.yaml file with the following:

    analyzer:
      strong-mode: true
    

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.22.0 <2.0.0
auth_header ^0.0.2 0.0.3
jaguar ^1.3.4 1.3.4
jaguar_jwt ^1.1.5 1.1.5
Transitive dependencies
args 1.2.0 1.3.0
charcode 1.1.1
collection 1.14.5
convert 2.0.1
crypto 2.0.2+1
http_server 0.9.7
intl 0.15.2
logging 0.11.3+1
meta 1.1.2
mime 0.9.6
path 1.5.1
quiver_hashcode 1.0.0
source_span 1.4.0
stack_trace 1.9.1
string_scanner 1.0.2
typed_data 1.1.5
yaml 2.1.13
Dev dependencies
http ^0.11.3
jaguar_auth ^1.3.2
jaguar_client ^0.2.0
jaguar_common ^0.2.1
jaguar_json ^1.3.1
jaguar_reflect ^1.3.2
jaguar_serializer ^0.5.0
test >=0.12.0 <0.13.0