equal
deleted
inserted
replaced
1126 |
1126 |
1127 return { |
1127 return { |
1128 headers = { content_type = "application/json" }; |
1128 headers = { content_type = "application/json" }; |
1129 body = json.encode { |
1129 body = json.encode { |
1130 active = true; |
1130 active = true; |
1131 client_id = credentials.username; -- We don't really know for sure |
1131 client_id = credentials.username; -- Verified via client hash |
1132 username = jid.node(token_info.jid); |
1132 username = jid.node(token_info.jid); |
1133 scope = token_info.grant.data.oauth2_scopes; |
1133 scope = token_info.grant.data.oauth2_scopes; |
1134 token_type = purpose_map[token_info.purpose]; |
1134 token_type = purpose_map[token_info.purpose]; |
1135 exp = token.expires; |
1135 exp = token.expires; |
1136 iat = token.created; |
1136 iat = token.created; |