Quasr
  • Introduction
    • Welcome to Quasr
    • Concepts
      • Flexible Authentication
      • User-Centric Privacy
      • Modern Development
    • Terminology
    • FAQs
  • Getting Started
    • Sign up with Quasr
    • Setup your tenant
      • Factor Configuration
      • Enrolling additional factors
      • Test with the Sample Client
      • Understanding Scopes & Scores
      • Setting up an API Client (M2M)
    • Connect your app
      • Hosted Login UI
      • Custom Login UI
      • Embedded Login UI
  • Account Administration
    • Introduction
    • Account & Billing
      • Metrics
    • Tenants
    • Usage & Statistics
    • Security
  • Tenant Administration
    • Introduction
    • Dashboard
    • Tenant Settings
    • Your Security
    • Accounts
      • Tenant Admins
    • Factors
      • Factors and Scoring
      • Username (ID)
      • Identity Provider (IDP)
        • Apple
        • Facebook
        • GitHub
        • Google
        • LinkedIn
        • Slack
      • Time-based One-time Password (TOTP)
      • One-Time Password (OTP)
      • Password
      • Secret
    • Controls
      • Configuration
      • Permissions
      • Consents
      • Rules
    • Attributes
      • Capturing Claims
      • Sourcing Claims
      • Viewing Claims
      • Searching Claims / Users
      • Sharing Claims
    • Extensions
      • Synchronous
      • Asynchronous
    • Tokens
      • Session Token (OAuth 2.0)
      • Access Token (OAuth 2.0)
      • Refresh Token (OAuth 2.0)
      • ID Token (OIDC 1.0)
      • Consent Token
      • Authorization Code (OAuth 2.0)
    • Hosted Login Page
    • APIs
      • Authentication API
      • Management API (GraphQL)
  • Legal
    • Terms of Service
    • Acceptable Use Policy
    • DPA & Subprocessors
  • More Info
    • Standards
    • Security
      • Vulnerability Disclosure
      • Wall of Recognition
    • Support
    • Status
Powered by GitBook
On this page
  • Viewed by the user
  • Viewed by an admin
  1. Tenant Administration
  2. Attributes

Viewing Claims

PreviousSourcing ClaimsNextSearching Claims / Users

Last updated 2 months ago

There are 4 ways in which claims can be viewed:

  1. By the user during the signup or login process.

  2. Manually by the user in the Account UI.

  3. Manually by an admin in the Admin UI.

  4. Automatically by an admin client via the Management API.

Viewed by the user

The user can view claims during signup or login using the Authentication API. Important is the score of the claims you want to view as the user needs to have a session with a (security) score at least equal to or larger as the score of the claim. Only claims within the score are returned.

The API call to view claims using the Authentication API looks as below (Postman documentation ):

// GET https://{{tenant_id}}.api.quasr.io/attributes
// Authorization: Bearer <session_token>
// RESPONSE IS AN ARRAY OF CLAIMS
[
    {
        "id": "<claim_id>",
        "type": "claim", // FIXED
        "subtype": "<claim_subtype>",
        "value": "<claim_value>",
        "label": "<claim_label>",
        "score": "<claim_score>", // ALWAYS LOWER OR EQUAL TO SESSION SCORE
        "status": "PENDING|ENABLED" // DISABLED CLAIMS ARE NOT RETURNED
    }
]

Alternatively the user can also manually view claims in the Account UI or via the Management API. In the Account UI users can go to Attributes.

// POST https://{{tenant_id}}.api.quasr.io/graphql
// Authorization: Bearer <accesss_token>
{
    "query": `
        query listClaims($account: ID!) {
            listClaims(account: $account) {
                id
                subtype
                value
                label
                score
                status
            }
        }`,
    "variables": `{
        "account": "<account_id>" // REQUIRED
    }`
}

Viewed by an admin

An admin can manually view claims in the Admin UI or via the Management API. In the Admin UI admins can go to Users, select the desired user, go to the Attributes tab.

// POST https://{{tenant_id}}.api.quasr.io/graphql
// Authorization: Bearer <accesss_token>
{
    "query": `
        query listClaims($account: ID!) {
            listClaims(account: $account) {
                id
                subtype
                value
                label
                score
                status
            }
        }`,
    "variables": `{
        "account": "<account_id>" // REQUIRED
    }`
}

The API call to view claims using the Management API looks as below (Postman documentation ):

The API call to view claims using the Management API looks as below (Postman documentation ):

here
here
here