Giter Club home page Giter Club logo

oidc-rp's People

Contributors

bourgeoa avatar cblakeley avatar christiansmith avatar cstefanache avatar dan-f avatar dmitrizagidulin avatar justinwb avatar kjetilk avatar michielbdejong avatar mitzi-laszlo avatar rubenverborgh avatar smalinin avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

oidc-rp's Issues

Handle endpoint URLs with query parameters

Currently the create method in class AuthenticationRequest overrides the endpoint URL query with FormUrlEncoded.encode(params) thus removing any existing query parameters in the endpoint URL.

Logout doesn't work in version 0.7.1

It is still call:

    return fetch(uri, {method})

instead of

    return fetch(uri, {method, credentials: 'include'})

in the logout() method.
I wrote many times, that it DOESN'T work without credentials: 'include'

Refactor AuthenticationResponse.errorResponse method

The static AuthenticationResponse.errorResponse method, as part of the validateResponse flow, is meant to convert the standard OAuth2 error parameters (error code, error_description and error_uri) into an actual Error object and to throw it.

(The AuthenticationResponse.validateResponse flow is also supposed to handle IDP errors returned to the callback endpoint as the OIDC/OAuth2 error params.)

Action items:

  • Move errorResponse up earlier in the control flow chain -- currently it's called after matchRequest and validateStateParam, but it should be called first thing.
  • Currently it only uses the OAuth2 error param, so need to add the error_description and error_uri params.
  • Consider using HttpError or something OAuth2-specific.

Allow options like max (age) to be passed from issueFor() to issue()

https://github.com/solid/oidc-rp/blob/dcae9cbb484f2aa9b913bd6e7db8ab8d98373186/src/PoPToken.js#L36

solid-auth-client uses issueFor() to generate a PoPToken. There appears to be no way to pass the max option through issueFor() to issue() to change the default age of the token generated from DEFAULT_MAX_AGE to anything else.

In general, it would probably be good to have a version of issueFor() that takes an option hash and passes the values through to the issue() call.

Replace rp.logout() with logoutRequest()

(From the discussion at nodeSolidServer/oidc-auth-manager#20).

Since this oidc-rp library is meant to be isomorphic (be able to be embedded in browser clients and server-side clients), it cannot implement logout() behavior itself (since the actual steps to log out are dramatically different depending on where this library is embedded).

Instead, implement something like:

  /**
   * @param options {object}
   * 
   * @param [options.id_token_hint] {string}
   * @param [options.post_logout_redirect_uri] {string}
   * @param [options.state] {string}
   *
   * @param session {Session|Storage}
   * 
   * @returns {string} Logout uri (based on the OP's `end_session_endpoint`)
   */
  logoutRequest(options, session) {
    // ...
  }

And it would be the responsibility of calling code (likely a wrapper like oidc-web) to call rp.logoutRequest() and take appropriate steps with the resulting URI.

Re-organizing github.com/solid

Dear repository maintainer,

On behalf of the Solid Team, thanks for creating resources for the Solid project. We appreciate your efforts!

A new vision on the github.com/solid namespace

We want to give all projects the spotlights they deserve, and that's why we have taken the decision to re-envision what the github.com/solid namespace will contain going forward.

Today, it is a mix of documents that are authoritative to Solid (such as specifications and processes), and software code in various stages of completion, some of which date back to when Solid was an MIT project.

Starting May 2022, github.com/solid will be a space for the authoritative documents, as described in the process repository.

Please help us by moving this repository

For that reason, we kindly ask you to move this repository to a different GitHub organization. This could be your personal GitHub username, or an organization that bundles several of your Solid projects. The choice is entirely yours.

Please let us know what you decide, so we can link to your repositories in the future. Rest assured that the existing link will keep on working; GitHub will redirect it to its new place. If you need any help with the migration, we'll be happy to assist.

Repositories that have not been moved by 1 May 2022 will be moved automatically to https://github.com/solid-contrib/, from where you can still make the decision to move them to another place at a later point in time.

Thanks in advance for your help!

Kind regards,

The Solid Team

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.