Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser display settings + refactoring #80

Merged
merged 35 commits into from
Feb 18, 2024
Merged

Conversation

Colin-b
Copy link
Owner

@Colin-b Colin-b commented Feb 18, 2024

No description provided.

@Colin-b Colin-b merged commit 7c72e2f into develop Feb 18, 2024
8 checks passed
@Colin-b Colin-b deleted the feature/custom_templates branch February 18, 2024 14:16
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
20.5% Duplication on New Code (required ≤ 3%)
E Security Rating on New Code (required ≥ A)

See analysis details on SonarCloud

idea Catch issues before they fail your Quality Gate with our IDE extension SonarLint SonarLint

):
auth = httpx_auth.WakaTimeAuthorizationCode(
"jPJQV0op6Pu3b66MWDi8b1wD",
"waka_sec_0c4MBGeR9LN74LzV5uelF9SgeQ32CqfeWpIuieneBbsL57dAAlqqJWDiVDJOlsSx61pVwHMKlsb3uMvU",

Check failure

Code scanning / SonarCloud

WakaTime tokens should not be disclosed High test

Make sure this WakaTime OAuth secret gets revoked, changed, and removed from the code. See more on SonarCloud
"<body><div>SUCCESS: {display_time}</div></body>"
)
tab = browser_mock.add_response(
opened_url="https://wakatime.com/oauth/authorize?client_id=jPJQV0op6Pu3b66MWDi8b1wD&client_secret=waka_sec_0c4MBGeR9LN74LzV5uelF9SgeQ32CqfeWpIuieneBbsL57dAAlqqJWDiVDJOlsSx61pVwHMKlsb3uMvU&scope=email&response_type=code&state=5d0adb208bdbecaf5cfb6de0bf4ba0aea52986f3fc5ea7bc30c4b2db449c17e5c9d15f9a3926476cdaf1c72e9f73c7cfdc624dde0187c38d8c6b04532770df2a&redirect_uri=http%3A%2F%2Flocalhost%3A5000%2F",

Check failure

Code scanning / SonarCloud

WakaTime tokens should not be disclosed High test

Make sure this WakaTime OAuth secret gets revoked, changed, and removed from the code. See more on SonarCloud
method="POST",
url="https://wakatime.com/oauth/token",
html="access_token=waka_tok_12345&token_type=bearer&expires_in=3600&refresh_token=waka_ref_12345&scope=email&example_parameter=example_value",
match_content=b"grant_type=authorization_code&redirect_uri=http%3A%2F%2Flocalhost%3A5000%2F&client_id=jPJQV0op6Pu3b66MWDi8b1wD&client_secret=waka_sec_0c4MBGeR9LN74LzV5uelF9SgeQ32CqfeWpIuieneBbsL57dAAlqqJWDiVDJOlsSx61pVwHMKlsb3uMvU&scope=email&response_type=code&code=SplxlOBeZQQYbYS6WxSbIA",

Check failure

Code scanning / SonarCloud

WakaTime tokens should not be disclosed High test

Make sure this WakaTime OAuth secret gets revoked, changed, and removed from the code. See more on SonarCloud
):
auth = httpx_auth.WakaTimeAuthorizationCode(
"jPJQV0op6Pu3b66MWDi8b1wD",
"waka_sec_0c4MBGeR9LN74LzV5uelF9SgeQ32CqfeWpIuieneBbsL57dAAlqqJWDiVDJOlsSx61pVwHMKlsb3uMvU",

Check failure

Code scanning / SonarCloud

WakaTime tokens should not be disclosed High test

Make sure this WakaTime OAuth secret gets revoked, changed, and removed from the code. See more on SonarCloud
)
httpx_auth.OAuth2.display.failure_html = "FAILURE: {display_time}\n{information}"
tab = browser_mock.add_response(
opened_url="https://wakatime.com/oauth/authorize?client_id=jPJQV0op6Pu3b66MWDi8b1wD&client_secret=waka_sec_0c4MBGeR9LN74LzV5uelF9SgeQ32CqfeWpIuieneBbsL57dAAlqqJWDiVDJOlsSx61pVwHMKlsb3uMvU&scope=email&response_type=code&state=5d0adb208bdbecaf5cfb6de0bf4ba0aea52986f3fc5ea7bc30c4b2db449c17e5c9d15f9a3926476cdaf1c72e9f73c7cfdc624dde0187c38d8c6b04532770df2a&redirect_uri=http%3A%2F%2Flocalhost%3A5000%2F",

Check failure

Code scanning / SonarCloud

WakaTime tokens should not be disclosed High test

Make sure this WakaTime OAuth secret gets revoked, changed, and removed from the code. See more on SonarCloud
):
auth = httpx_auth.WakaTimeAuthorizationCode(
"jPJQV0op6Pu3b66MWDi8b1wD",
"waka_sec_0c4MBGeR9LN74LzV5uelF9SgeQ32CqfeWpIuieneBbsL57dAAlqqJWDiVDJOlsSx61pVwHMKlsb3uMvU",

Check failure

Code scanning / SonarCloud

WakaTime tokens should not be disclosed High test

Make sure this WakaTime OAuth secret gets revoked, changed, and removed from the code. See more on SonarCloud
"<body><div>SUCCESS: {display_time}</div></body>"
)
tab = browser_mock.add_response(
opened_url="https://wakatime.com/oauth/authorize?client_id=jPJQV0op6Pu3b66MWDi8b1wD&client_secret=waka_sec_0c4MBGeR9LN74LzV5uelF9SgeQ32CqfeWpIuieneBbsL57dAAlqqJWDiVDJOlsSx61pVwHMKlsb3uMvU&scope=email&response_type=code&state=5d0adb208bdbecaf5cfb6de0bf4ba0aea52986f3fc5ea7bc30c4b2db449c17e5c9d15f9a3926476cdaf1c72e9f73c7cfdc624dde0187c38d8c6b04532770df2a&redirect_uri=http%3A%2F%2Flocalhost%3A5000%2F",

Check failure

Code scanning / SonarCloud

WakaTime tokens should not be disclosed High test

Make sure this WakaTime OAuth secret gets revoked, changed, and removed from the code. See more on SonarCloud
method="POST",
url="https://wakatime.com/oauth/token",
html="access_token=waka_tok_12345&token_type=bearer&expires_in=3600&refresh_token=waka_ref_12345&scope=email&example_parameter=example_value",
match_content=b"grant_type=authorization_code&redirect_uri=http%3A%2F%2Flocalhost%3A5000%2F&client_id=jPJQV0op6Pu3b66MWDi8b1wD&client_secret=waka_sec_0c4MBGeR9LN74LzV5uelF9SgeQ32CqfeWpIuieneBbsL57dAAlqqJWDiVDJOlsSx61pVwHMKlsb3uMvU&scope=email&response_type=code&code=SplxlOBeZQQYbYS6WxSbIA",

Check failure

Code scanning / SonarCloud

WakaTime tokens should not be disclosed High test

Make sure this WakaTime OAuth secret gets revoked, changed, and removed from the code. See more on SonarCloud
):
auth = httpx_auth.WakaTimeAuthorizationCode(
"jPJQV0op6Pu3b66MWDi8b1wD",
"waka_sec_0c4MBGeR9LN74LzV5uelF9SgeQ32CqfeWpIuieneBbsL57dAAlqqJWDiVDJOlsSx61pVwHMKlsb3uMvU",

Check failure

Code scanning / SonarCloud

WakaTime tokens should not be disclosed High test

Make sure this WakaTime OAuth secret gets revoked, changed, and removed from the code. See more on SonarCloud
)
httpx_auth.OAuth2.display.failure_html = "FAILURE: {display_time}\n{information}"
tab = browser_mock.add_response(
opened_url="https://wakatime.com/oauth/authorize?client_id=jPJQV0op6Pu3b66MWDi8b1wD&client_secret=waka_sec_0c4MBGeR9LN74LzV5uelF9SgeQ32CqfeWpIuieneBbsL57dAAlqqJWDiVDJOlsSx61pVwHMKlsb3uMvU&scope=email&response_type=code&state=5d0adb208bdbecaf5cfb6de0bf4ba0aea52986f3fc5ea7bc30c4b2db449c17e5c9d15f9a3926476cdaf1c72e9f73c7cfdc624dde0187c38d8c6b04532770df2a&redirect_uri=http%3A%2F%2Flocalhost%3A5000%2F",

Check failure

Code scanning / SonarCloud

WakaTime tokens should not be disclosed High test

Make sure this WakaTime OAuth secret gets revoked, changed, and removed from the code. See more on SonarCloud
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.

2 participants