Basil Eljuse | 4b14afb | 2020-09-30 13:07:23 +0100 | [diff] [blame^] | 1 | #!/usr/bin/env python3 |
| 2 | |
| 3 | __copyright__ = """ |
| 4 | /* |
| 5 | * Copyright (c) 2020, Arm Limited. All rights reserved. |
| 6 | * |
| 7 | * SPDX-License-Identifier: BSD-3-Clause |
| 8 | * |
| 9 | */ |
| 10 | """ |
| 11 | |
| 12 | """ credentials.py: |
| 13 | |
| 14 | Credentials class. This is for reference only. |
| 15 | |
| 16 | """ |
| 17 | |
| 18 | # SECRET_KEY is set for reference purpose only |
| 19 | # It is recommended to change its value before deployment |
| 20 | SECRET_KEY = 'SECRET_KEY' |
| 21 | |
| 22 | |
| 23 | class User(object): |
| 24 | def __init__(self, id, username, password): |
| 25 | self.id = id |
| 26 | self.username = username |
| 27 | self.password = password |
| 28 | |
| 29 | def __str__(self): |
| 30 | return "User(id='%s')" % self.id |
| 31 | |
| 32 | |
| 33 | # User credentials are set for reference purpose only |
| 34 | # It is recommended to change these value accordingly before deployment |
| 35 | users = [ |
| 36 | User(1, 'metrics_1', 'metrics_pass_1'), |
| 37 | User(2, 'metrics_2', 'metrics_pass_2'), |
| 38 | User(3, 'tfa_metrics', 'tfa_metrics_pass'), |
| 39 | ] |