File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
python-flask-audit-logs-example Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,14 @@ def get_events():
105
105
106
106
return redirect ("export_events" )
107
107
108
+ @app .route ("/events" , methods = ["GET" ])
109
+ def events ():
110
+ link = workos .client .portal .generate_link (
111
+ organization = session ["organization_id" ], intent = "audit_logs"
112
+ )
113
+
114
+ return redirect (link ["link" ])
115
+
108
116
109
117
@app .route ("/logout" )
110
118
def logout ():
Original file line number Diff line number Diff line change @@ -44,7 +44,10 @@ <h2 class="home-hero-gradient">Enterprise Ready</h2>
44
44
< div class ="flex_column width-40vw ">
45
45
< div class ="flex card width-40vw space-between ">
46
46
< code class ="org-id "> {{organization_id}}</ code >
47
- < a href ="/logout "> < button class ="button "> Change Org</ button > </ a >
47
+ < div >
48
+ < a href ="/events "> < button class ="button "> Event Stream</ button > </ a >
49
+ < a href ="/logout "> < button class ="button "> Change Org</ button > </ a >
50
+ </ div >
48
51
</ div >
49
52
< div class ="card width-40vw ">
50
53
< div class ="flex space-evenly width-40vw margin-b-25 ">
You can’t perform that action at this time.
0 commit comments