# MCP OAuth2 authentication code and implicit problems

**URL:** <https://forum.cursor.com/t/mcp-oauth2-authentication-code-and-implicit-problems/112821>\
**Category:** Bug Reports\
**Created:** [July 3, 2025, 2:21pm UTC](https://forum.cursor.com/t/mcp-oauth2-authentication-code-and-implicit-problems/112821 "2025-07-03T14:21:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bug](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@bug](https://forum.cursor.com/u/bug)\
**Post date:** [July 3, 2025, 2:21pm UTC](https://forum.cursor.com/t/mcp-oauth2-authentication-code-and-implicit-problems/112821/1 "2025-07-03T14:21:56Z")

</div>

### Describe the Bug

OAuth2 authorization code callback to the cursor app does not work. The redirect url is correct. Tried to change to implicit, but Cursor seems not to support it (it stops after the registration call and then sends an empty request to the authorization server). How to get authentication working ?

### Steps to Reproduce

1. implement OAUTH dynamic client registration (Cursor sees this as mandatory, it should not) authorization should be possible by an already created client on the authorization server with secret and id.
2. Add the MCP.json to cursor
3. Cursor calls the Oauth2 endpoint and request for a login (only “code” works)
4. Click login, browser opens the login page
5. Click submit to launch the redirect url.
6. Ubuntu cannot launch cursor.

### Expected Behavior

1. Ubuntu to launch cursor and cursor to send a code for token exchange request

### Screenshots / Screen Recordings

### Operating System

Linux

### Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.1.7  
VSCode Version: 1.96.2  
Commit: 7111807980fa9c93aedd455ffa44b682c0dc1350  
Date: 2025-07-01T07:30:30.003Z  
Electron: 34.5.1  
Chromium: 132.0.6834.210  
Node.js: 20.19.0  
V8: 13.2.152.41-electron.0  
OS: Linux x64 6.15.3

### Does this stop you from using Cursor

Yes - Cursor is unusable

---

<div class="post-metadata">

**Author:** ![bug](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@bug](https://forum.cursor.com/u/bug)\
**Post date:** [July 3, 2025, 4:36pm UTC](https://forum.cursor.com/t/mcp-oauth2-authentication-code-and-implicit-problems/112821/2 "2025-07-03T16:36:40Z")

</div>

Interestingly, not completing the login process, but then disable /enable the service with the blue slider, shows up the the tools and a logout button. That should not be possible.

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/5/e/5e07da42c31910a0dd8e63ae0310e4c9d4e6a61b.png)

P.S: Even these tool/functions now show up, it seem there isn’t a way to call the tool ?

---

<div class="post-metadata">

**Author:** ![gary1](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@gary1](https://forum.cursor.com/u/gary1)\
**Post date:** [July 4, 2025, 7:32pm UTC](https://forum.cursor.com/t/mcp-oauth2-authentication-code-and-implicit-problems/112821/3 "2025-07-04T19:32:42Z")

</div>

what are you using for your mcp.json file?

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [July 26, 2025, 7:33pm UTC](https://forum.cursor.com/t/mcp-oauth2-authentication-code-and-implicit-problems/112821/4 "2025-07-26T19:33:07Z")

</div>

Closed on July 26, 2025, 7:33pm UTC

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.
