Skip to content

Add unit test coverage for OrcidAuthService #9671

Todo

Description

@anishshiva7

Task Summary

Add orcid-auth.service.spec.ts for OrcidAuthService, which the ORCID login flow reads its client id, authorize URL and redirect URI from. It has no spec.

Scenario Contract
getConfig() one GET {api}/auth/orcid/config; the config reaches the subscriber unchanged (ORCID requires the redirect URI to match byte-for-byte)
not subscribed no request is made
HTTP error reaches the subscriber's error callback
ORCID_STATE_KEY stays "orcid_state", the key the login and callback pages share

Scope

  • New test: frontend/src/app/common/service/user/orcid-auth.service.spec.ts.
  • No production-code changes.

Task Type

  • Refactor / Cleanup
  • DevOps / Deployment / CI
  • Testing / QA
  • Documentation
  • Performance
  • Other

Activity

  1. anishshiva7 commented on Nov 24, 2026

    @anishshiva7
    ContributorAuthor

    /take

  2. github-actions commented on Nov 24, 2026

    @github-actions
    Contributor

    👋 Thanks for opening this issue, @anishshiva7!

    It looks like the issue description doesn't quite follow our template yet:

    • This issue doesn't appear to use one of our templates (Bug, Feature, or Task). Please open it using a template so the required details are captured.

    Filling out the template helps reviewers understand and triage your contribution faster. Please edit the description to complete it. This message will disappear automatically once the template is followed.

    You can find the template prompts by editing the description, or see CONTRIBUTING.md for the full contribution flow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions