GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — MCP OAuth client hardcodes prompt=consent, bypassing tenant-wide admin consent (Microsoft Entra) · Issue #46361 · anomalyco/opencode Closed DescriptionDescriptionOpenCode’s built-in MCP OAuth client unconditionally adds prompt=consent to authorization requests. For Microsoft Entra ID applications using the /.default scope, this forces an interactive consent request on every authentication attempt. As a result, Entra ID displays an "Approval required" page even when tenant-wide administrator consent has already been granted. Removing only prompt=consent from the generated authorization URL allows the OAuth flow to complete successfully. OpenCode then receives and stores both an access token and a refresh token. The same issue exists for claude code: anthropics/claude-code#64013, anthropics/claude-code#49722 Environment
Microsoft Entra configurationThe application has tenant-wide administrator consent for all requested permissions. The relevant OAuth grants have consentType: AllPrincipals. The application requests delegated permissions including:
Steps to reproduce
Actual behaviorOpenCode adds For Microsoft Entra applications using There is currently no documented OpenCode configuration option to disable or control this behavior. Expected behaviorOpenCode should not unconditionally add If valid consent already exists, the authorization flow should proceed without forcing the user through the consent screen. Explicit consent should still be requested when required by the authorization server. WorkaroundUntil this behavior is changed, remove PluginsNo response OpenCode versionNo response Steps to reproduceNo response Screenshot and/or share linkNo response Operating SystemNo response TerminalNo response Reacted by JtMotoX Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |