OAuth2 implementation compatible with vibe.d
To use this package, run the following command in your project's root directory:
Put the following dependency into your project's dependences section:
oauth package provides an implementation of the OAuth 2.0 Authorization
This package is in early development phase. Subsequent versions may not be fully compatible. Especially between versions 0.0.1 and 0.1.0 the API changed a lot.
Full documentation is in the source, here is just an overview of the 0.1.0+ API.
You'll need at least one
OAuthProvider. Preliminary support for Facebook is
included. You generally don't reference instances of this class directly, except
when registering a custom provider.
OAuthSettings instance contains application-specific settings, such as the
client id, for use with a particular provider. Also it provides methods to
obtain authorization using these settings. If authorization is successful, an
OAuthSession instance is returned. For three-legged OAuth, use the
userAuthUri method to obtain the URL where the user agent is to be redirected
to. When the authorization code is received, through redirection back to the
userSession to obtain the
OAuthSession holds an access token and optionally a refresh token. Use its
authorizeRequest method to apply the access token to an
If the access token has expired, it will automatically be refreshed, if a
refresh token is available.
- Registered by Harry T. Vennik
- 0.1.0 released 6 years ago
- Copyright © 2016 Harry T. Vennik
- vibe-d:data, vibe-d:core, vibe-d:http
0.2.3 2020-Oct-17 0.2.2 2019-Aug-30 0.2.1 2018-May-02 0.2.0 2017-Jul-20 0.2.0-beta.3 2017-Jul-08
- Download Stats:
0 downloads today
0 downloads this week
0 downloads this month
220 downloads total
- Short URL: