shelf_oauth 0.8.2

  • Example
  • Installing
  • Versions
  • 0


Build Status Pub Version

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



Features and bugs

Please file feature requests and bugs at the issue tracker.



  • upgraded crypto package to 0.9.2+1


  • increase upper bound on uri package


  • ClientFactory now returns a Future


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


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


  • Now uses http_exception package rather than shelf_exception_response


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


  • added OAuthStorage for conveniently grouping all oauth related storage


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


  • Slightly more robust handling of content-type


  • Added oauth2


  • some validation


  • Initial version, created by Stagehand.


// 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() {}

Use this package as a library

1. Depend on it

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

  shelf_oauth: ^0.8.2

2. Install it

You can install packages from the command line:

with pub:

$ pub get

Alternatively, your editor might support pub 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...

Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

The package version is not analyzed, because it does not support Dart 2. Until this is resolved, the package will receive a health and maintenance score of 0.

Analysis issues and suggestions

Support Dart 2 in pubspec.yaml.

The SDK constraint in pubspec.yaml doesn't allow the Dart 2.0.0 release. For information about upgrading it to be Dart 2 compatible, please see

Maintenance issues and suggestions

Running dartdoc failed. (-10 points)

Make sure dartdoc runs without any issues.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <2.0.0