Skip to content

MCP Inspector OAuth flow stucks at "Preparing Authorization": Cannot read properties of undefined (reading 'digest') #490

@RomanValov

Description

@RomanValov

Describe the bug
Unable to complete OAuth2 flow due to error at "Preparing Authorization": Cannot read properties of undefined (reading 'digest')

To Reproduce
Steps to reproduce the behavior:

  1. Enter SSE MCP address, i.e. "https://example.com/sse"
  2. Press "Open Auth Settings" button
  3. Press "Continue" button three times

Expected behavior
OAuth steps are passed

Logs

"index-CfNcvwpX.js:25968 OAuth flow error: TypeError: Cannot read properties of undefined (reading 'digest')
    at generateChallenge (index-CfNcvwpX.js:16204:46)
    at async pkceChallenge (index-CfNcvwpX.js:16214:21)
    at async startAuthorization (index-CfNcvwpX.js:16379:21)
    at async Object.execute (index-CfNcvwpX.js:16548:50)
    at async OAuthStateMachine.executeStep (index-CfNcvwpX.js:16624:5)
    at async index-CfNcvwpX.js:25966:7

Additional context

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    authIssues and PRs related to authorizationbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions