278 lines
14 KiB
Python
278 lines
14 KiB
Python
from lemur.common.utils import parse_certificate
|
|
|
|
VALID_USER_HEADER_TOKEN = {
|
|
'Authorization': 'Basic ' + 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE1MjE2NTIwMjIsImV4cCI6MjM4NTY1MjAyMiwic3ViIjoxfQ.uK4PZjVAs0gt6_9h2EkYkKd64nFXdOq-rHsJZzeQicc',
|
|
'Content-Type': 'application/json'
|
|
}
|
|
|
|
|
|
VALID_ADMIN_HEADER_TOKEN = {
|
|
'Authorization': 'Basic ' + 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1MjE2NTE2NjMsInN1YiI6MiwiYWlkIjoxfQ.wyf5PkQNcggLrMFqxDfzjY-GWPw_XsuWvU2GmQaC5sg',
|
|
'Content-Type': 'application/json'
|
|
}
|
|
|
|
|
|
VALID_ADMIN_API_TOKEN = {
|
|
'Authorization': 'Basic ' + 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOjIsImFpZCI6MSwiaWF0IjoxNDM1MjMzMzY5fQ.umW0I_oh4MVZ2qrClzj9SfYnQl6cd0HGzh9EwkDW60I',
|
|
'Content-Type': 'application/json'
|
|
}
|
|
|
|
|
|
INTERNAL_VALID_LONG_STR = """
|
|
-----BEGIN CERTIFICATE-----
|
|
MIID1zCCAr+gAwIBAgIBATANBgkqhkiG9w0BAQsFADCBjDELMAkGA1UEBhMCVVMx
|
|
CzAJBgNVBAgMAkNBMRAwDgYDVQQHDAdBIHBsYWNlMRcwFQYDVQQDDA5sb25nLmxp
|
|
dmVkLmNvbTEQMA4GA1UECgwHRXhhbXBsZTETMBEGA1UECwwKT3BlcmF0aW9uczEe
|
|
MBwGCSqGSIb3DQEJARYPamltQGV4YW1wbGUuY29tMB4XDTE1MDYyNjIwMzA1MloX
|
|
DTQwMDEwMTIwMzA1MlowgYwxCzAJBgNVBAYTAlVTMQ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