Information Card Ruby Wiki
Recommended Practices

Identity Claim

It is recommended that you set your identity claim to :ppid, as it is the only constant identifier of a user’s information card. The invariable nature of the :ppid also allows us to hash it and make it even more unreadable. If you decide to use a different claim to identify a user (ie. :email_address), should the user change their e-mail address on their Information Card, your site will not be able to find them.

To configure the required_claims and the identity_claim, follow the syntax below in your environments file(s).

# Required Claims
InformationCard::Config.required_claims = [:ppid, :given_name]

# Claim to identify Information Cards
InformationCard::Config.identity_claim = :ppid