Details
-
Suggestion
-
Status: New
-
Resolution: Unresolved
-
None
-
None
-
None
-
UI
Description
Description
As a user, I would like to be able to retrieve information about the site associated with the authentication token through a GraphQL query.
This would allow applications and integrations to identify which site a token belongs to without requiring additional configuration or external lookups.
User friction
Currently, there is no straightforward way to retrieve the site information associated with a given authentication token through GraphQL.
As a result, users and developers may need to rely on additional configuration, manual lookups, or alternative mechanisms to identify the site associated with the token.
Steps to reproduce (right now) / Actual Result:
- Authenticate using a valid token.
- Execute a GraphQL query to retrieve information about the authenticated context.
- Attempt to retrieve the site information associated with the token.
Actual result: The GraphQL API does not currently expose the site information associated with the token.
IMPACT
What would improve if solved:
- Allow for dynamically identifying the site associated with an authentication token.
- Improve the experience when working with the GraphQL API.
- Reduce implementation complexity and potential configuration errors.
Impact on stakeholders:
- Easier implementation of integrations and applications using GraphQL
- A smoother experience with fewer manual configuration steps
- Fewer support requests related to identifying the site associated with an authentication token
Current workaround:
- Relying on external configuration, hardcoded site identifiers, or other available mechanisms to determine which site is associated with the token
CONTEXT & EXAMPLES:
Concrete example:
An application authenticates using an API token and needs to determine which site that token belongs to.
Ideally, the application should be able to execute a GraphQL query and retrieve the associated site information, such as the site ID and site name, directly from the authentication context.
This would allow the application to adapt dynamically based on the site associated with the token.
Workaround risk:
- Configuration inconsistencies between environments.
- Increased maintenance effort when tokens or site associations change.
- Risk of associating a token with the wrong site.
- Additional dependencies and complexity in application implementations.