@@ -994,6 +994,7 @@ pub struct HawkIdentifier {
994994 /// For NoSQL database backends that require randomly distributed primary keys
995995 pub fxa_uid : String ,
996996 pub fxa_kid : String ,
997+ pub hashed_fxa_uid : String ,
997998 pub tokenserver_origin : TokenserverOrigin ,
998999}
9991000
@@ -1004,6 +1005,7 @@ impl HawkIdentifier {
10041005 legacy_id : 0 ,
10051006 fxa_uid : "cmd" . to_owned ( ) ,
10061007 fxa_kid : "cmd" . to_owned ( ) ,
1008+ hashed_fxa_uid : "cmd" . to_owned ( ) ,
10071009 tokenserver_origin : TokenserverOrigin :: default ( ) ,
10081010 }
10091011 }
@@ -1106,6 +1108,7 @@ impl HawkIdentifier {
11061108 legacy_id : payload. user_id ,
11071109 fxa_uid : payload. fxa_uid ,
11081110 fxa_kid : payload. fxa_kid ,
1111+ hashed_fxa_uid : payload. hashed_fxa_uid ,
11091112 tokenserver_origin : payload. tokenserver_origin ,
11101113 } ;
11111114 Ok ( user_id)
@@ -1118,6 +1121,7 @@ impl From<HawkIdentifier> for UserIdentifier {
11181121 legacy_id : hawk_id. legacy_id ,
11191122 fxa_uid : hawk_id. fxa_uid ,
11201123 fxa_kid : hawk_id. fxa_kid ,
1124+ hashed_fxa_uid : hawk_id. hashed_fxa_uid ,
11211125 }
11221126 }
11231127}
0 commit comments