Keycloak error: Expected 'mail' attribute, but attribute was not found.

494 views
Skip to first unread message

Calvin Cheah

unread,
Apr 20, 2018, 5:12:52 PM4/20/18
to cBioPortal for Cancer Genomics Discussion Group

Hi,

I've set up my local cBioPortal to authenticate against a Keycloak server, following the instructions here:

  1. I'm able to create the client and users.
  2. When launching cBioPortal I get redirected to Keycloak as expected and log in as a user I created on Keycloak
  3. However, after successfully logging in, I get redirected with this error:
    Error during authentication parsing: loadUserBySAML(), Could not parse the user details from credential message. Expected 'mail' attribute, but attribute was not found. Previous debug messages show which attributes were found and parsed.
Have renamed my SAML attribute wrongly?



I wonder if it is something I did wrong here in the Mapper?


Thanks so much :)

Calvin

Calvin Cheah

unread,
Apr 20, 2018, 5:20:39 PM4/20/18
to cBioPortal for Cancer Genomics Discussion Group
Oh sorry, it was my fault. I missed out the portal.properties settings which defined the mail attribute.

saml.idp.metadata.attribute.email=email
saml.idp.metadata.attribute.role=roles

Working like a charm now :)

--
You received this message because you are subscribed to the Google Groups "cBioPortal for Cancer Genomics Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cbioportal+unsubscribe@googlegroups.com.
To post to this group, send email to cbiop...@googlegroups.com.
Visit this group at https://groups.google.com/group/cbioportal.
To view this discussion on the web visit https://groups.google.com/d/msgid/cbioportal/4c426711-ffae-4b6b-bc93-45235a15013c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages