Simon Oliver Tveit

Results 43 issues of Simon Oliver Tveit

Discussed in #2948, the values for how long an access or refresh token should be active are currently consants (1h and 1day respectively). These should be configurable.

config

## Scope and purpose Fixes #1323. Had troubles getting the Django test client stuff working, so this is example of how my tests look using `RequestFactory` and testing the views...

nonews

### Describe the bug If you stop ipdevpolld and an event gets added to the queue, then start ipdevpolld again it wont consume the event. ### To Reproduce ### Expected...

Based on #3268 Adds API endpoint for JWT refresh token. It accepts valid refresh tokens and returns an access token and a new refresh token while invalidating the old one....

JWT

Adds a frontend for managing JWT refresh tokens. You can see which tokens exist, expire existing ones and generate new ones.

JWT

#2374 added support for a new type of AKCP sensors. The new sensors put all types of sensors in the same "common" table, instead of separate tables for temperature, humidity...

## Scope and purpose Fixes #1194. Adds a page with information from an incident that kinda simulates what a real ticket could look like on a ticket site (very basic...

frontend
ticket system
blocked

Test the views, prob no need to test the helper functions there, they should realistically be tested via the views. They should prob be marked with underscores as I doubt...

tests

## Scope and purpose Fixes #3682 This makes some big changes to the JWT Create and Edit views: They are changed from being `generic.View` to `generic.CreateView `and `generic.EditView` respectively. This...

AFAIK there are NO tests for this, and adds #3673 even more tests to JWT tokens, making the disparity larger. Legacy tokens are supposed to be removed, hence the (Maybe)...