1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-21 23:00:50 +03:00

Standalone pages to view an OAuth client and a browser session

This commit is contained in:
Quentin Gliech
2022-11-16 17:47:25 +01:00
parent 78778648ca
commit 6021aa691c
9 changed files with 418 additions and 5 deletions

View File

@@ -16,6 +16,7 @@ import type { OAuth2Session_session$key } from "./__generated__/OAuth2Session_se
import { graphql, useFragment } from "react-relay";
import { Body, Bold, Code } from "./Typography";
import Block from "./Block";
import { Link } from "react-router-dom";
type Props = {
session: OAuth2Session_session$key;
@@ -41,7 +42,12 @@ const OAuth2Session: React.FC<Props> = ({ session }) => {
return (
<Block>
<Body>
Client ID: <Code>{data.client.clientId}</Code>
<Link
to={`/client/${data.client.id}`}
className="text-links hover:text-links/75"
>
Client ID: <Code>{data.client.clientId}</Code>
</Link>
</Body>
{data.client.clientName && (
<Body>