-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add authentication and authorisation to Ibutsu
- Add a login page - Add a login controller - Use JWT authentication - Make HttpClient service object that transparently auths requests - Add OAuth2 login to Ibutsu - Add tests for the login controller - Add Keycloak integration - Add authorisation, users can only see resources for projects they are part of - Use the 'from_file' method if it exists - Add support for running the dev servers under TLS
- Loading branch information
Showing
69 changed files
with
7,130 additions
and
5,407 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,29 @@ | ||
#!/usr/bin/env python3 | ||
import sys | ||
from pathlib import Path | ||
|
||
from ibutsu_server import get_app | ||
|
||
SSL_CERT = Path("../certs/dev.ibutsu.org+2.pem") | ||
SSL_KEY = Path("../certs/dev.ibutsu.org+2-key.pem") | ||
|
||
|
||
if __name__ == "__main__": | ||
get_app().run(port=8080, debug=True) | ||
kwargs = {} | ||
if "--ssl" in sys.argv: | ||
if not SSL_CERT.exists() or not SSL_CERT.exists(): | ||
print( | ||
"SSL certificate and/or key files not found. Please download and install mkcert " | ||
"and run the following command to generate these files:" | ||
) | ||
print("") | ||
print(" mkcert dev.ibutsu.org devapi.ibutsu.org localhost") | ||
print("") | ||
print( | ||
"Then place these two files in a `certs` directory in the top level directory of " | ||
"the project (the same directory containing `backend` and `frontend`)." | ||
) | ||
sys.exit(1) | ||
else: | ||
kwargs["ssl_context"] = (SSL_CERT, SSL_KEY) | ||
get_app().run(port=8080, debug=True, **kwargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.