Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dealing with CAS with fields under userAttributes array #45

Open
craff opened this issue Jan 29, 2024 · 1 comment
Open

Dealing with CAS with fields under userAttributes array #45

craff opened this issue Jan 29, 2024 · 1 comment
Assignees

Comments

@craff
Copy link

craff commented Jan 29, 2024

I am working on the ENTs ONE and NEO for education provided by Edifice. Most of the CAS interface have the user fields inside a userAttributes array and do not work with casattras. For instance:

<cas:serviceResponse` xmlns:cas="http://www.yale.edu/tp/cas">
  <cas:authenticationSuccess>
      <cas:user>isabelle.polonio</cas:user>
      <cas:attributes>
           <cas:userAttributes>
                <firstName xmlns="">ISABELLE</firstName>
                <lastName xmlns="">POLONIO</lastName>
                <administrativeStructures xmlns="">96d4d883-d58b-405c-89c7-c91a84e55952</administrativeStructures>
                <emailAcademy xmlns="">isabelle.polonio@http://web-education.net </emailAcademy>
                <structures xmlns="">ENT2DVA-5347</structures>
                <profiles xmlns="">[National_3]</profiles>
                <externalId xmlns="">5554823602</externalId>
                <id xmlns="">91c22b66-ba1b-4fde-a3fe-95219cc18d4a</id>
                <type xmlns="">Teacher</type>
                <structureNode xmlns="">{"optionEnabled":["EDUMEDIA"],"hasApp":true,"created":"2019-07-01T08:17:51.877+02:00","oldName":"Edumedia","name":"Edumedia","checksum":"043671d1462c16e486345717228be20897c26731","externalId":"ae685252-9100-49cf-8065-96baa27fe2b1","modified":"2020-10-27T09:44:30.278+01:00","manualName":false,"id":"bb703ef0-7ba7-42ae-be17-920d5b45ac9a","UAI":"0959998B"}</structureNode>
                <email xmlns="">isabelle.polonio@http://yopmail.com </email>
           </cas:userAttributes>
      </cas:attributes>
</cas:authenticationSuccess>
</cas:serviceResponse>

Moreover, I want to use the "id" user attribute as username on moodle so I would need a possibility to choose a which attribute I want to use as moodle user name.

@mackensen
Copy link
Contributor

mackensen commented Jan 31, 2024

@craff I can't recall seeing CAS attributes in that format; what specification are they using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants