BYU-CAS
Examples
Validating a ticket
var cas = ; var ticket = ;var service = 'http://example.com/signin'; cas;
Retrieving a CAS ticket
Note: this is removed in version 2.0.0 except when the environment variable
INSECURE
is set. @agrasley has a good explanation
of the risks involved when using this function.
var cas = ;var service = 'http://example.com/signin'; cas;
Attributes come back in the following format
restOfName: 'Peter Oliver' activeParttimeNonBYUEmployee: false activeParttimeInstructor: false inactiveFulltimeEmployee: false surname: 'Rabbit' activeFulltimeInstructor: false memberOf: preferredFirstName: 'Peter' sortName: 'Rabbit, Peter Oliver' activeFulltimeNonBYUEmployee: false inactiveParttimeNonBYUEmployee: false organization: false activeEligibletoRegisterStudent: false name: 'Peter Rabbit' preferredSurname: false personId: '611290592' inactiveParttimeInstructor: false netId: 'prabbit' inactiveFulltimeNonBYUEmployee: false byuId: '872643180' restricted: false emailAddress: 'prabbitbyu@sharklasers.com' alumni: false inactiveParttimeEmployee: false inactiveFulltimeInstructor: false activeFulltimeEmployee: false fullName: 'Peter Oliver Rabbit IV' activeParttimeEmployee: false
Contributing
We're pretty lax, but
- New features must come with an appropriate test
- New features should have an example in
README.md
- Pull requests will generally not be merged if they break tests
- Use two spaces per indent