Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(passport): Settings - Add missing scopes to Application page #2351

Merged
merged 13 commits into from
Jun 7, 2023

Conversation

poolsar42
Copy link
Collaborator

Description

Adds missing scopes to application view in passport

Related Issues

Testing

Under settings/applications/${clientId} route in passport all visual changes were tested

Checklist

  • I have read the CONTRIBUTING guidelines
  • I have tested my code (manually and/or automated if applicable)
  • I have updated the documentation (if necessary)

@poolsar42 poolsar42 force-pushed the feat/2261-passport-missing-scopes branch from 2c28984 to 1526f7a Compare June 1, 2023 20:38
@poolsar42 poolsar42 self-assigned this Jun 1, 2023
@@ -458,6 +458,10 @@ export default function Authorize() {
}
}

if (requestedScope.includes("openid")) {
personaData.openid = true
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to have something in personaData for openid scope when retriving it to display

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See other comment; openid should not be shown, so it can be removed.

@poolsar42 poolsar42 force-pushed the feat/2261-passport-missing-scopes branch from ba3bd1b to e5fadfd Compare June 2, 2023 20:32
@poolsar42 poolsar42 marked this pull request as ready for review June 2, 2023 20:32
@@ -77,6 +76,33 @@ export default () => {
type: profile.type === 'eth' ? 'blockchain' : profile.type,
})),
})
} else if (scopeValue === "openid") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

openid is a system scope, with no associated claims. It can be removed.

@@ -458,6 +458,10 @@ export default function Authorize() {
}
}

if (requestedScope.includes("openid")) {
personaData.openid = true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See other comment; openid should not be shown, so it can be removed.

@@ -320,6 +320,28 @@ async function profileClaimsRetriever(
} else throw new InvalidPersonaDataError()
}

async function openidClaimsRetriever(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove, as per other comments.

accounts={claim.accounts}
connectedAccounts={true}
/>
case 'openid':
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove, as per previous comments.

@poolsar42 poolsar42 force-pushed the feat/2261-passport-missing-scopes branch from f992f33 to 280f086 Compare June 6, 2023 14:55
})
} else if (scopeMeta[scopeValue].hidden) {
aggregator.push({
claim: 'system_identifiers',
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I keep it as 'claim' here to be consistent with other scopes from the list. Note that nothing is being shared as claim value in this case

@betimshahini betimshahini merged commit 1db1e73 into main Jun 7, 2023
13 of 14 checks passed
@betimshahini betimshahini deleted the feat/2261-passport-missing-scopes branch June 7, 2023 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(passport): Settings - Add missing scopes to Application page
2 participants