Git Product home page Git Product logo

account's People

Contributors

alexkonst avatar pidginenemy avatar rogaldh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

account's Issues

Remove unused methods from Provider interface

The only methods that are currently used:

  • refreshAccessTokenRequest
  • revokeRefreshTokenRequest
  • accountRequest

These methods aren't used and may be changed in the future:

  • accessTokenRequest
  • linkRequest
  • unlinkRequest
  • authRequest
  • isEnabledRequest
  • enableRequest
  • disableRequest
  • removeAccountRequest

It would be better to remove them before the next major release, and adding new adjusted versions as we go.

Consider changing format of AccountId

AccountId is composite type that consists from:

  • AccountLabel is an internal tenant's account identifier that is unique within the specified audience
  • Audience may represent oauth2 client id, or tenant id, or environment, etc.

Consider passing both to constructor of Account.

String representation is "{accountLabel}.{audience}".
For instance, accountLabel="12345" and audience="example.org" become "12345.example.org".

Note that for requests to account's profile endpoint both accountId ("12345.example.org") and accountLabel ("12345") may make sense (for multi-audience providers and single-audience providers)
Note that it imply changing keys for objects in underlying storage (localStorage).

Allow initializing Account from refresh token

  • There are cases where we already have a refresh token. It would be useful to initialize Account using it.
  • Since refresh token often don't have expiration time or lasts longer that access token that may also be helpful through development.

Allow to customize provider endpoints

Allow to customize provider endpoints:

  • authn_uri, authentication endpoint
    with default value: ${this.base_uri}/authn

  • account_uri, account endpoint
    with default value: ${this.base_uri}/accounts

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.