mirror of
https://github.com/outline/outline.git
synced 2026-11-21 21:44:30 +03:00
* Add ReactionsCreate notification event type - Add ReactionsCreate to NotificationEventType enum and defaults - Add notification settings UI with SmileyIcon and proper labels - Create ReactionsCreateNotificationsTask to handle comment reactions - Update NotificationsProcessor to handle comments.add_reaction events - Add eventText and path handling in client Notification model - Notifications are enabled by default but never send emails * Applied automatic fixes * Show the actual emoji in the notification * Cleanup notifications if reaction is removed * PR feedback --------- Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com> Co-authored-by: Tom Moor <tom@getoutline.com>
29 lines
752 B
TypeScript
29 lines
752 B
TypeScript
import { HttpsProxyAgent } from "https-proxy-agent";
|
|
import OAuth2Strategy, { Strategy } from "passport-oauth2";
|
|
|
|
export class OIDCStrategy extends Strategy {
|
|
constructor(
|
|
options: OAuth2Strategy.StrategyOptionsWithRequest,
|
|
verify: OAuth2Strategy.VerifyFunctionWithRequest
|
|
) {
|
|
super(options, verify);
|
|
|
|
if (process.env.https_proxy) {
|
|
const httpsProxyAgent = new HttpsProxyAgent(process.env.https_proxy);
|
|
this._oauth2.setAgent(httpsProxyAgent);
|
|
}
|
|
}
|
|
|
|
authenticate(req: any, options: any) {
|
|
options.originalQuery = req.query;
|
|
super.authenticate(req, options);
|
|
}
|
|
|
|
authorizationParams(options: any) {
|
|
return {
|
|
...options.originalQuery,
|
|
...super.authorizationParams?.(options),
|
|
};
|
|
}
|
|
}
|