• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mlibrary / keycard / 135
100%
main: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/coverallsapp/github-action-2.1.0
DEFAULT BRANCH: main
Ran 02 Jul 2019 12:51AM UTC
Jobs 1
Files 40
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
135

push

travis-ci

botimer
Add support for logins/sessions

This is a rather involved addition to make Keycard much more
self-sufficient as an authentication system. There are all the elements
here to manage multiple authentication strategies in a chain of command
and provide the usual conveniences for use in controllers.

There are three new primary terms:

 - Notary - the main component that manages identity verification
 - Certificate - the result of identity verification
 - Verification - an individual method for verifying identity

A Notary should be configured and made available to the application,
taking collaborators for the deployment mode (a request attribute
factory) and the verification methods.

The one complication is that a verification method needs to be able to
find and verify accounts. Rather than do this with model-based
conventions, each Verification can define its own contract for a method
it needs to call. An injected finder looks up the account, and in some
cases confirms parameters for the particular verification method. There
are some conveniences for binding to typical class methods, but there is
no requirement on the names or locations, only the signature.

Beyond that bit of configuration, the usage is rather similar to Sorcery
or Devise. There are the usual logged_in? and current_user methods and
an authenticate! method intended to be used as a before_action with a
rescue_from for missing/failed authentication handling. These controller
methods are available on a mixin module for familiarity.

Re: PFDR-208

1291 of 1292 relevant lines covered (99.92%)

4.6 hits per line

Jobs
ID Job ID Ran Files Coverage
1 135.1 (2.4.2) 02 Jul 2019 12:51AM UTC 0
99.92
Travis Job 135.1
Source Files on build 135
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #135
  • 05d7ed79 on github
  • Next Build on login-support (#137)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc