1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00
Files
Stefan Pratter 4b10b8e41d Support 202304 (#1383)
* Don't allow the first and last addresses being assigned #1241

Show all e-mail addresses associated with a username #1291

Add permission 'manage peering sessions' #1290

Put an Icon next to user name on https://www.peeringdb.com/org/nnnn#users if the user is using U2F #1238

Tie TOTP devices and Webauthn Security Keys to the user account #1339

v2 Search (#1204)

pin django peeringdb 3.0.1 and poetry relock

linting

* fix codeql warning: DOM text reinterpreted as HTML

* fix global stats tests

---------

Co-authored-by: 20C <code@20c.com>
2023-05-16 18:04:05 +00:00

701 B

Generated from api_key_views.py on 2023-04-12 10:09:44.563425

peeringdb_server.api_key_views

Views for organization api key management.

Functions


add_user_key

def add_user_key(*args, **kwds)

Create a new User API key.

Requires a name and a readonly boolean.


load_all_key_permissions

def load_all_key_permissions(org)

Returns dict of all users with all their permissions for the given org.


remove_user_key

def remove_user_key(*args, **kwds)

Revoke user api key.


save_key_permissions

def save_key_permissions(org, key, perms)

Save key permissions for the specified org and key.

Perms should be a dict of permissioning ids and permission levels.