Skip to content
This repository was archived by the owner on Jul 3, 2026. It is now read-only.
This repository was archived by the owner on Jul 3, 2026. It is now read-only.

Invalid Session Participant #71

Closed
Closed

Description

@jstephens7

The documentation provides us with what a session participant object should look like but does not provide information for when or where to store/create session participants.
This may just be my misunderstanding but could some documentation regarding how and when to create session participants be provided?

Activity

  1. jstephens7 commented on Aug 6, 2018

    @jstephens7
    Author

    I would think that this would be created internally upon a successful saml response creation, as it has all the information necessary then. Is there any reason session participants aren't created automatically?

    Also, it appears session participants need to be instances of SessionParticipants prototype y'all have internally, but it's not exposed and I don't see any way to add to the list of session participants.

  2. jstephens7 commented on Aug 6, 2018

    @jstephens7
    Author

    Accidentally closed, apologies.

  3. jstephens7 commented on Aug 7, 2018

    @jstephens7
    Author

    Also, in considering how this apparently expects you to store the session participants externally, but removes some internally, how are we to know which session participants should still exist externally after they are removed?

  4. ksmithut commented on Sep 7, 2018

    @ksmithut

    I'm also having issues with this. I have come to find out that the sessionParticipants object does not need to be an instance of that SessionParticipants prototype, but it does need to have the same signature. It's still not clear how the session stuff works from a SAML point of view (new to SAML), but I'm guessing that the session needs to be initialized on login? Again, I'm new to this, so I'm just reading through the code to figure out how it all works.

  5. jstephens7 commented on Sep 9, 2018

    @jstephens7
    Author

    Hey @ksmithut, I just saw your reply. I found out how to use this properly after viewing another npm which uses this one. Here is the main source file you need to look through: https://github.com/mcguinness/saml-idp/blob/master/app.js
    I decided to store our session participants in mongo so I made our sessionId the object id from in mongo. I didn't realize at first glance we could just pull out the session participant object internally from this npm, but that's what we ended up doing. I can try to help if you have any more questions.

  6. ksmithut commented on Sep 11, 2018

    @ksmithut

    Thanks :) That was super helpful. Going through this now and implementing it. Thanks!

  7. eightHundreds commented on Jul 31, 2019

    @eightHundreds

    image

    the implement

    options.sessionParticipants.get(requestData.issuer, requestData.sessionIndex, requestData.nameId, function (err, session) {
      if (err) { return next(err); }
      if (!session && !options.destination) { return next(new Error('Invalid Session Participant')); }
    // ...

    In my case, i have no other participants,but this code assumes that there must be other participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions