openid / openid/AppAuth-JS

Add State Param in Configuration

Open
#210 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1k
Forks
165
PR merge metrics
No merged PRs in 30d

Description

Hi, I am migrating from react-oidc-context v3 to react-oidc v5.
The default value of state is undefined in v5 but our authentication service using Ory Hydra requires an valid state value.

I have tried adding state in extras prop but it is not working.
Could we get an option to set our own state value in the configuration provided to OidcProvider?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the OidcProvider configuration and the existing handling of the extras prop, then follow where the state value is generated for authentication. Done means callers can provide a custom state value through configuration and that value is used by the authentication flow; add or update coverage for the configuration behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
authentication, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.