Skip to content

Provide custom HTTP headers setting#57

Open
spetrescu84 wants to merge 1 commit into
mainfrom
spetrescu/custom_headers
Open

Provide custom HTTP headers setting#57
spetrescu84 wants to merge 1 commit into
mainfrom
spetrescu/custom_headers

Conversation

@spetrescu84
Copy link
Copy Markdown
Contributor

Add NativeAuthRequestInterceptor implementation to EmailPasswordSignInSignUpFragment to demonstrate custom header injection for native auth CIAM requests.

Changes

  • Fragment implements NativeAuthRequestInterceptor
  • additionalHeaders() targets the /oauth2/v2.0/initiate endpoint
  • Demonstrates three header types:
    • Invalid prefix (ignored by SDK)
    • Reserved x-client- prefix (ignored by SDK)
    • Valid X-my-custom-header (added to the network request)
  • Sets interceptor on the shared auth client configuration via cast

Dependencies

Add NativeAuthRequestInterceptor implementation to EmailPasswordSignInSignUpFragment
to demonstrate custom header injection for native auth CIAM requests.

- Fragment implements NativeAuthRequestInterceptor
- additionalHeaders() targets the /oauth2/v2.0/initiate endpoint
- Demonstrates three header types: invalid prefix (ignored), reserved prefix
  (ignored), and valid x- prefixed header (added to request)
- Sets interceptor on the shared auth client configuration

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@spetrescu84 spetrescu84 changed the title Demo custom HTTP headers setting on Email and Password screen Provide custom HTTP headers setting May 15, 2026
@spetrescu84 spetrescu84 self-assigned this May 15, 2026
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.

2 participants