Skip to content

Refuse API key if user is disabled#293

Merged
oliverklee merged 1 commit into
masterfrom
block-disabled-admins
Jun 22, 2018
Merged

Refuse API key if user is disabled#293
oliverklee merged 1 commit into
masterfrom
block-disabled-admins

Conversation

@xh3n1
Copy link
Copy Markdown
Collaborator

@xh3n1 xh3n1 commented Jun 21, 2018

While testing the REST API, I noticed that disabled administrators are still able to generate API keys as well as use their existing ones.

This adjusts the authentication logic to block access for disabled administrators.

The tests are currently failing on master, I will address those in another PR.

@xh3n1 xh3n1 requested a review from samtuke June 21, 2018 15:43
@xh3n1
Copy link
Copy Markdown
Collaborator Author

xh3n1 commented Jun 21, 2018

Once #294 and #295 are merged all tests should be green again and I will rebase.

While testing the REST API, I noticed that disabled administrators are still able to generate API keys as well as use their existing ones.

This adjusts the authentication logic to block access for disabled administrators.

Signed-off-by: Xheni Myrtaj <myrtajxheni@gmail.com>
@xh3n1 xh3n1 force-pushed the block-disabled-admins branch from 9ad7af3 to d2c83ae Compare June 22, 2018 08:27
@samtuke samtuke requested a review from oliverklee June 22, 2018 08:37
@oliverklee oliverklee merged commit 05d2205 into master Jun 22, 2018
@oliverklee oliverklee deleted the block-disabled-admins branch June 22, 2018 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants