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

jwag956 / flask-security / 285
97%

Build:
DEFAULT BRANCH: master
Ran 09 Jul 2019 02:24AM UTC
Jobs 9
Files 24
Run time 148min
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
285

push

travis-ci

web-flow
Feature - implement granular Permissions. (#120)

Added support for permissions within a role (standard RBAC).

The RoleMixin provide methods for getting and modifying permissions (which
are stored as a simple comma separated string).

2 new decorators - permissions_required and permissions_accepted can be used to protect
endpoints.

A new method on UserDataStore has_permission() can be used to check if the user
has requested permission if the decorators aren't able to be used.

Permissions are simple strings and not interpreted by Flask-Security at all.

As support for this and additional functionality -introduced the idea of entire model mixins
that set up complete User and Role models for all functionality (and for future new tables).
These models also include some best practice constructs such as update_datetime and username.
These are NOT required, but are an attempt to reduce effort to integrate Flask-Security.

Added an examples/ package and implement a full example of using permissions.

1945 of 2065 relevant lines covered (94.19%)

8.48 hits per line

Jobs
ID Job ID Ran Files Coverage
1 285.1 (REQUIREMENTS=lowest) 09 Jul 2019 04:43AM UTC 0
94.19
Travis Job 285.1
2 285.2 (REQUIREMENTS=lowest) 09 Jul 2019 04:43AM UTC 0
94.19
Travis Job 285.2
3 285.3 (REQUIREMENTS=lowest) 09 Jul 2019 04:43AM UTC 0
94.19
Travis Job 285.3
4 285.4 (REQUIREMENTS=lowest) 09 Jul 2019 04:43AM UTC 0
94.19
Travis Job 285.4
5 285.5 (REQUIREMENTS=release) 09 Jul 2019 04:43AM UTC 0
97.54
Travis Job 285.5
6 285.6 (REQUIREMENTS=release) 09 Jul 2019 04:46AM UTC 0
97.54
Travis Job 285.6
7 285.7 (REQUIREMENTS=release) 09 Jul 2019 04:46AM UTC 0
97.54
Travis Job 285.7
8 285.8 (REQUIREMENTS=release) 09 Jul 2019 04:49AM UTC 0
97.54
Travis Job 285.8
9 285.9 (REQUIREMENTS=lowest) 09 Jul 2019 04:50AM UTC 0
94.19
Travis Job 285.9
Source Files on build 285
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #285
  • 77969912 on github
  • Prev Build on master (#279)
  • Next Build on master (#288)
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