shelf_oauth 0.8.2

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 36

shelf_oauth

Build Status Pub Version

Provides Shelf Handlers to do the OAuth dance. Supports OAuth1 and OAuth2

Usage

TODO...

Features and bugs

Please file feature requests and bugs at the issue tracker.

Changelog

0.8.1

  • upgraded crypto package to 0.9.2+1

0.8.1

  • increase upper bound on uri package

0.8.0

  • ClientFactory now returns a Future

0.7.0

  • Renamed OAuth2Provider to OAuth2AuthorizationServer and similar for oauth1
  • Added some common authorization servers like github, bitbucket, google and hipchat

0.6.0

  • shelf 0.6.0
  • OAuth2ProviderHandlers take factories for ClientId and OAuth2Provider
  • upgrade uri and test packages

0.5.0

  • Now uses http_exception package rather than shelf_exception_response

0.4.0

  • make accessType a parameter. Note: default is now 'online' whereas previously it was 'offline'

0.3.1

  • added OAuthStorage for conveniently grouping all oauth related storage

0.3.0

  • storing tokens in oauth 2 now optional
  • fixed handling of content-type
  • store context for oauth2

0.2.0

  • Slightly more robust handling of content-type

0.1.0

  • Added oauth2

0.0.2

  • some validation

0.0.1

  • Initial version, created by Stagehand.

example/shelf_oauth.dart

// Copyright (c) 2014, <your name>. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

library shelf_oauth.example;

main() {}

1. Depend on it

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


dependencies:
  shelf_oauth: "^0.8.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:shelf_oauth/shelf_oauth.dart';
        
Version Uploaded Documentation Archive
0.8.2 Apr 10, 2016 Go to the documentation of shelf_oauth 0.8.2 Download shelf_oauth 0.8.2 archive
0.8.1 Jan 6, 2016 Go to the documentation of shelf_oauth 0.8.1 Download shelf_oauth 0.8.1 archive
0.8.0 Aug 12, 2015 Go to the documentation of shelf_oauth 0.8.0 Download shelf_oauth 0.8.0 archive
0.7.0 Jul 1, 2015 Go to the documentation of shelf_oauth 0.7.0 Download shelf_oauth 0.7.0 archive
0.6.4 Jun 25, 2015 Go to the documentation of shelf_oauth 0.6.4 Download shelf_oauth 0.6.4 archive
0.6.3 Jun 25, 2015 Go to the documentation of shelf_oauth 0.6.3 Download shelf_oauth 0.6.3 archive
0.6.2 Jun 25, 2015 Go to the documentation of shelf_oauth 0.6.2 Download shelf_oauth 0.6.2 archive
0.6.1 Jun 23, 2015 Go to the documentation of shelf_oauth 0.6.1 Download shelf_oauth 0.6.1 archive
0.6.0 Jun 18, 2015 Go to the documentation of shelf_oauth 0.6.0 Download shelf_oauth 0.6.0 archive
0.5.0 Apr 1, 2015 Go to the documentation of shelf_oauth 0.5.0 Download shelf_oauth 0.5.0 archive

All 18 versions...

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]
5 / 100
Health:
Code health derived from static analysis. [more]
98 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
18 / 100
Overall score:
Weighted score of the above. [more]
36

Platforms

Detected platforms: Flutter, other

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

Suggestions

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

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <2.0.0
crypto ^0.9.2+1 0.9.2+1 2.0.2+1
http_exception ^0.1.0 0.1.0
logging >=0.9.2 <0.12.0 0.11.3+1
oauth >=0.3.0 <0.4.0 0.3.0 0.4.0
option ^1.1.0 1.2.0
shelf ^0.6.0 0.6.8 0.7.2
uri >=0.9.3 <0.12.0 0.11.1
uuid >=0.5.0 <0.6.0 0.5.1 0.5.3
Transitive dependencies
async 1.13.3 2.0.3
bignum 0.0.7 0.1.0
charcode 1.1.1
cipher 0.7.1
collection 1.14.5
concepts 0.2.0
convert 1.1.1 2.0.1
either 0.1.8
fixnum 0.9.1+2 0.10.6
http 0.11.3+16
http_parser 3.1.1
matcher 0.12.1+4
path 1.5.1
quiver 0.25.0 0.28.0
source_span 1.4.0
stack_trace 1.9.1
stream_channel 1.6.3
string_scanner 1.0.2
typed_data 1.1.5
utf 0.9.0+4
Dev dependencies
test ^0.12.0