wip new metadata
This commit is contained in:
parent
befadc0042
commit
00893afc0b
2 changed files with 19 additions and 38 deletions
|
|
@ -179,7 +179,7 @@ const AuthDebugger = ({
|
|||
serverAuthProvider.clear();
|
||||
updateAuthState({
|
||||
oauthTokens: null,
|
||||
oauthStep: "resource_metadata_discovery",
|
||||
oauthStep: "metadata_discovery",
|
||||
latestError: null,
|
||||
oauthClientInfo: null,
|
||||
authorizationCode: "",
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@ interface OAuthFlowProgressProps {
|
|||
}
|
||||
|
||||
const steps: Array<OAuthStep> = [
|
||||
"resource_metadata_discovery",
|
||||
"metadata_discovery",
|
||||
"client_registration",
|
||||
"authorization_redirect",
|
||||
|
|
@ -79,16 +80,6 @@ export const OAuthFlowProgress = ({
|
|||
null,
|
||||
);
|
||||
|
||||
const steps: Array<OAuthStep> = [
|
||||
"resource_metadata_discovery",
|
||||
"metadata_discovery",
|
||||
"client_registration",
|
||||
"authorization_redirect",
|
||||
"authorization_code",
|
||||
"token_request",
|
||||
"complete",
|
||||
];
|
||||
|
||||
const currentStepIdx = steps.findIndex((s) => s === authState.oauthStep);
|
||||
|
||||
useEffect(() => {
|
||||
|
|
@ -135,8 +126,8 @@ export const OAuthFlowProgress = ({
|
|||
|
||||
<div className="space-y-3">
|
||||
<OAuthStepDetails
|
||||
label="Resource Metadata Discovery"
|
||||
{...getStepProps("resource_metadata_discovery")}
|
||||
label="Metadata Discovery"
|
||||
{...getStepProps("metadata_discovery")}
|
||||
>
|
||||
{authState.resourceMetadata && (
|
||||
<details className="text-xs mt-2">
|
||||
|
|
@ -148,11 +139,6 @@ export const OAuthFlowProgress = ({
|
|||
</pre>
|
||||
</details>
|
||||
)}
|
||||
</OAuthStepDetails>
|
||||
<OAuthStepDetails
|
||||
label="Metadata Discovery"
|
||||
{...getStepProps("metadata_discovery")}
|
||||
>
|
||||
{provider.getServerMetadata() && (
|
||||
<details className="text-xs mt-2">
|
||||
<summary className="cursor-pointer text-muted-foreground font-medium">
|
||||
|
|
|
|||
Loading…
Reference in a new issue