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

Add Stacklok logo to enrollment complete html page #896

Merged
merged 1 commit into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added assets/images/stacklok.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 11 additions & 2 deletions pkg/auth/html/oauth_success.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
<title>Mediator</title>
<style>
body {
display: grid;
}

.main {
background-color: #ffffff;
font-family: Arial, sans-serif;
text-align: center;
Expand All @@ -35,7 +39,12 @@
</style>
</head>
<body>
<h1>Mediator enrollment complete</h1>
<p>You can now close this window and return to the CLI.</p>
<div>
<img src="/static/images/stacklok.png" alt="Stacklok logo" width="200">
</div>
<div class="main">
<h1>Mediator enrollment complete</h1>
<p>You can now close this window and return to the CLI.</p>
</div>
</body>
</html>
3 changes: 3 additions & 0 deletions pkg/controlplane/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,11 @@ func (s *Server) StartHTTPServer(ctx context.Context) error {
// register the services (declared within register_handlers.go)
RegisterGatewayHTTPHandlers(ctx, gwmux, s.cfg.GRPCServer.GetAddress(), opts)

fs := http.FileServer(http.Dir("assets/"))

mux.Handle("/", gwmux)
mux.HandleFunc("/api/v1/webhook/", HandleGitHubWebHook(s.evt, s.store))
mux.Handle("/static/", http.StripPrefix("/static/", fs))

errch := make(chan error)

Expand Down