Giter Club home page Giter Club logo

Comments (7)

gollmann avatar gollmann commented on June 15, 2024 1

Hi,
there seems to be an inconsistency in SSP 1.14 regarding userid.attribute:

Setting the attribute for the IdP in saml20-idp-hosted.php already results in warnings:

The 'userid.attribute' option has been deprecated.

OTOH the consent module (consent:Consent) still requires the UserID, see https://simplesamlphp.org/docs/stable/consent:consent

NB: since the consent module is run after attributes are filtered the uid-attribute usually is not and should not be available anymore.

Kind regards, Georg

from simplesamlphp.

jaimeperez avatar jaimeperez commented on June 15, 2024 1

Hi @gollmann!

The userid.attribute option has been indeed deprecated, and will be removed in 2.0. That doesn't mean it's no longer in use. It is, in many places, and we'll slowly take it off. It will keep working during 1.14.x as you have seen, and also in 1.15.x, but in the latter there will be alternatives to it for every module or place where it's used.

from simplesamlphp.

thijskh avatar thijskh commented on June 15, 2024 1

@jaimeperez I'm not sure it's useful to start issuing deprecation notices to users if they cannot stop using that configuration setting. Maybe we should just mark it as deprecated in the code?

When the time has come that you indeed do not need to use this option anymore, we'd need to put something in the upgrade notes to tell users what the alternatives are, because that's now also lacking.

from simplesamlphp.

w3care avatar w3care commented on June 15, 2024

Hi Jaime,
I need help in resolving the error: -
core:TargetedID: Missing UserID for this user. Please check the 'userid.attribute' option in the metadata against the attributes provided by the authentication source
I have done the followings -

  1. Setup an IdP
  2. Setup an SP
  3. Set twitter as the authsource
  4. My SP receives response when I do not use authproc, it receives all the authentication data from twitter.
  5. But when I try to add filter, it gives me the above error. I made a change in the twitter mapping file - 'twitter.email' => 'uid',
  6. What else we need to add in the authsource when we use Twitter:
    'twitter' => array(
    'authtwitter:Twitter',
    'key' => ''.$twitterapikey.'',
    'secret' => ''.$twittersecret.'',
    'force_login' => FALSE,
    'userid.attribute' => 'email',
    'attributes' => array(
    'IDPEmail' => 'urn:oasis:names:tc:SAML:2.0:attrname-format:email',
    ),

Any help will be greatly appreciated.

from simplesamlphp.

jaimeperez avatar jaimeperez commented on June 15, 2024

Hi @w3care,

This is an issue tracker, not a support forum. Please use the mailing list if you need support.

from simplesamlphp.

tvdijen avatar tvdijen commented on June 15, 2024

The consent-module was taken care of. We picked 'identifyingAttribute' as a config setting

from simplesamlphp.

tvdijen avatar tvdijen commented on June 15, 2024

Closing, because I'm pretty sure all objects and/or authprocs now have the 'identifyingAttribute' available

from simplesamlphp.

Related Issues (20)

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.