Skip to content

Commit beb2375

Browse files
awolfdenAdam Wolfman
andauthored
Add log streams tab to audit logs app (#33)
Co-authored-by: Adam Wolfman <[email protected]>
1 parent 03edae5 commit beb2375

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

python-flask-audit-logs-example/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def get_events():
170170
@app.route("/events", methods=["GET"])
171171
def events():
172172
link = workos.client.portal.generate_link(
173-
organization=session["organization_id"], intent="audit_logs"
173+
organization=session["organization_id"], intent=request.args.get("intent")
174174
)
175175

176176
return redirect(link["link"])

python-flask-audit-logs-example/templates/send_events.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,13 @@
7878
<div class="flex space-evenly width-11vw content-button tab">
7979
<div>{{ lucide.icon('eye', stroke_width=1) }}</div>
8080
<div>
81-
<a href="/events" class="remove-style"><button class="remove-style">Event Stream</button></a>
81+
<a href="/events?intent=audit_logs" class="remove-style"><button class="remove-style">View Events</button></a>
82+
</div>
83+
</div>
84+
<div class="flex space-evenly width-11vw content-button tab">
85+
<div>{{ lucide.icon('share_2', stroke_width=1) }}</div>
86+
<div>
87+
<a href="/events?intent=log_streams" class="remove-style"><button class="remove-style">Configure Log Streams</button></a>
8288
</div>
8389
</div>
8490
</div>
@@ -208,9 +214,6 @@ <h3>Export Events</h3>
208214
}
209215
}
210216
})
211-
212-
213-
214217
</script>
215218
</body>
216219

0 commit comments

Comments
 (0)