jaguar_session_jwt 1.3.2

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 47

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

Use this package as a library

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 flutter 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

We analyzed this package on Jun 19, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3

Scores

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

Platforms

Detected platforms: Flutter, other

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

Suggestions

  • Homepage does not exists.

    We were unable to access https://github.com/Jaguar-dart/jaguar_session_jwt at the time of the analysis.

  • 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.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 5 hints.

    Strong-mode analysis of lib/src/auth_header.dart gave the following hint:

    line: 27 col: 66
    'AUTHORIZATION' is deprecated and shouldn't be used.

    Strong-mode analysis of lib/src/common.dart gave the following hint:

    line: 44 col: 55
    'UNAUTHORIZED' is deprecated and shouldn't be used.

  • 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.11 2.1.7
jaguar_jwt ^1.1.5 1.1.5
Transitive dependencies
args 1.4.3
charcode 1.1.1
collection 1.14.10
convert 2.0.1
crypto 2.0.5
http_server 0.9.7
logging 0.11.3+1
meta 1.1.5
mime 0.9.6+1
path 1.6.1
source_span 1.4.0
stack_trace 1.9.2
string_scanner 1.0.2
typed_data 1.1.5
yaml 2.1.14
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