lightSAML / SpBundle

SAML2 SP Symfony Bundle based on LightSAML
https://www.lightsaml.com/SP-Bundle/
MIT License
66 stars 70 forks source link

Attributes - how to specify/require/query them? #53

Open 01e9 opened 7 years ago

01e9 commented 7 years ago
  1. I can't find how to specify in metadata.xml what attributes my SP requires from IdP.

    When I add my SP metadata xml to my https://samlidp.io/ IdP, I get this message

    staticshot_18-08-2017_11-39-37

    It works only when email switch is ON, otherwise I get null in

    // UserCreatorInterface
    $this->usernameMapper->getUsername($response)
  2. How to make AttributeQuery? As I understand this is not implemented?

    On user login (on AuthnRequest Response) I want to make an AttributeQuery and abort login process if IdP doesn't provide the required attributes (for example email, First Name, Last Name).

P.S. This bundle is a big machinery for me, so sorry if this question is too obvious for you. I have spent almost a week inspecting it and still no clear vision about its internals.