File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
python-flask-audit-logs-example Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ def get_events():
170
170
@app .route ("/events" , methods = ["GET" ])
171
171
def events ():
172
172
link = workos .client .portal .generate_link (
173
- organization = session ["organization_id" ], intent = "audit_logs"
173
+ organization = session ["organization_id" ], intent = request . args . get ( "intent" )
174
174
)
175
175
176
176
return redirect (link ["link" ])
Original file line number Diff line number Diff line change 78
78
< div class ="flex space-evenly width-11vw content-button tab ">
79
79
< div > {{ lucide.icon('eye', stroke_width=1) }}</ div >
80
80
< 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 >
82
88
</ div >
83
89
</ div >
84
90
</ div >
@@ -208,9 +214,6 @@ <h3>Export Events</h3>
208
214
}
209
215
}
210
216
} )
211
-
212
-
213
-
214
217
</ script >
215
218
</ body >
216
219
You can’t perform that action at this time.
0 commit comments