You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(glean): Capture 'scopes' in oauth access token creation Glean event
Because:
* We want to log granted scope info when access tokens are created
This commit:
* Adds a new 'scopes' option for the oauth token created Glean event
closes FXA-13288
Copy file name to clipboardExpand all lines: packages/fxa-auth-server/lib/metrics/glean/server_events.ts
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -409,6 +409,7 @@ class EventsServerEventLogger {
409
409
* @param {string} utm_source - The source from where the user started. For example, if the user clicked on a link on the Mozilla accounts web site, this value could be 'fx-website'. The value has a max length of 128 characters with the alphanumeric characters, _ (underscore), forward slash (/), . (period), % (percentage sign), and - (hyphen) in the allowed set of characters..
410
410
* @param {string} utm_term - This metric is similar to the `utm.source`; it is used in the Firefox browser. For example, if the user started from about:welcome, then the value could be 'aboutwelcome-default-screen'. The value has a max length of 128 characters with the alphanumeric characters, _ (underscore), forward slash (/), . (period), % (percentage sign), and - (hyphen) in the allowed set of characters..
411
411
* @param {string} reason - additional context-dependent info, e.g. the cause of an error.
412
+
* @param {string} scopes - The OAuth scopes granted for the access token, in a comma-separated list.
412
413
*/
413
414
recordAccessTokenCreated({
414
415
user_agent,
@@ -428,6 +429,7 @@ class EventsServerEventLogger {
428
429
utm_source,
429
430
utm_term,
430
431
reason,
432
+
scopes,
431
433
}: {
432
434
user_agent: string;
433
435
ip_address: string;
@@ -446,12 +448,14 @@ class EventsServerEventLogger {
0 commit comments