fix: preserve operator scopes for shared auth connections#27498
Closed
kevinWangSheng wants to merge 1 commit intoopenclaw:mainfrom
Closed
fix: preserve operator scopes for shared auth connections#27498kevinWangSheng wants to merge 1 commit intoopenclaw:mainfrom
kevinWangSheng wants to merge 1 commit intoopenclaw:mainfrom
Conversation
When connecting via shared gateway token (no device identity), the operator scopes were being cleared, causing API operations to fail with 'missing scope' errors. This fix preserves scopes when sharedAuthOk is true, allowing headless/API operator clients to retain their requested scopes. Fixes openclaw#27494
Contributor
Greptile SummaryFixed operator scope preservation for shared gateway token authentication. When operators connect via shared token/password without device identity (headless/API clients), their scopes are now correctly preserved instead of being cleared.
Confidence Score: 5/5
Last reviewed commit: c71c894 |
This comment was marked as spam.
This comment was marked as spam.
Contributor
|
Landed on main. Landed via commit 9c14299 on main. Follow-up test alignment included in 96aad96. Thanks @kevinWangSheng. |
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Feb 27, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498. Co-authored-by: kevinWangSheng <118158941+kevinWangSheng@users.noreply.github.com>
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Feb 27, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498. Co-authored-by: kevinWangSheng <118158941+kevinWangSheng@users.noreply.github.com> (cherry picked from commit 4850148)
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Feb 27, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498. Co-authored-by: kevinWangSheng <118158941+kevinWangSheng@users.noreply.github.com> (cherry picked from commit 4850148)
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Feb 27, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498. Co-authored-by: kevinWangSheng <118158941+kevinWangSheng@users.noreply.github.com> (cherry picked from commit 4850148)
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Feb 27, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498. Co-authored-by: kevinWangSheng <118158941+kevinWangSheng@users.noreply.github.com> (cherry picked from commit 4850148)
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Feb 27, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498. Co-authored-by: kevinWangSheng <118158941+kevinWangSheng@users.noreply.github.com> (cherry picked from commit 4850148)
execute008
pushed a commit
to execute008/openclaw
that referenced
this pull request
Feb 27, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498. Co-authored-by: kevinWangSheng <118158941+kevinWangSheng@users.noreply.github.com>
r4jiv007
pushed a commit
to r4jiv007/openclaw
that referenced
this pull request
Feb 28, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498. Co-authored-by: kevinWangSheng <118158941+kevinWangSheng@users.noreply.github.com>
mylukin
pushed a commit
to mylukin/openclaw
that referenced
this pull request
Feb 28, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498. Co-authored-by: kevinWangSheng <118158941+kevinWangSheng@users.noreply.github.com>
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Feb 28, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498. Co-authored-by: kevinWangSheng <118158941+kevinWangSheng@users.noreply.github.com> (cherry picked from commit 4850148)
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Feb 28, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498. Co-authored-by: kevinWangSheng <118158941+kevinWangSheng@users.noreply.github.com> (cherry picked from commit 4850148)
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Feb 28, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498. Co-authored-by: kevinWangSheng <118158941+kevinWangSheng@users.noreply.github.com> (cherry picked from commit 4850148)
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Feb 28, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498. Co-authored-by: kevinWangSheng <118158941+kevinWangSheng@users.noreply.github.com> (cherry picked from commit 4850148)
vincentkoc
pushed a commit
to Sid-Qin/openclaw
that referenced
this pull request
Feb 28, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498. Co-authored-by: kevinWangSheng <118158941+kevinWangSheng@users.noreply.github.com>
vincentkoc
pushed a commit
to rylena/rylen-openclaw
that referenced
this pull request
Feb 28, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498. Co-authored-by: kevinWangSheng <118158941+kevinWangSheng@users.noreply.github.com>
hughdidit
pushed a commit
to hughdidit/DAISy-Agency
that referenced
this pull request
Mar 1, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498. Co-authored-by: kevinWangSheng <118158941+kevinWangSheng@users.noreply.github.com> (cherry picked from commit 96aad96) # Conflicts: # src/agents/subagent-announce.ts # src/gateway/server.auth.test.ts
steipete
added a commit
to Sid-Qin/openclaw
that referenced
this pull request
Mar 2, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498. Co-authored-by: kevinWangSheng <118158941+kevinWangSheng@users.noreply.github.com>
robertchang-ga
pushed a commit
to robertchang-ga/openclaw
that referenced
this pull request
Mar 2, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498. Co-authored-by: kevinWangSheng <118158941+kevinWangSheng@users.noreply.github.com>
hughdidit
pushed a commit
to hughdidit/DAISy-Agency
that referenced
this pull request
Mar 3, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498. Co-authored-by: kevinWangSheng <118158941+kevinWangSheng@users.noreply.github.com> (cherry picked from commit 96aad96) # Conflicts: # src/agents/subagent-announce.ts # src/gateway/server.auth.test.ts
dorgonman
pushed a commit
to kanohorizonia/openclaw
that referenced
this pull request
Mar 3, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498. Co-authored-by: kevinWangSheng <118158941+kevinWangSheng@users.noreply.github.com>
zooqueen
pushed a commit
to hanzoai/bot
that referenced
this pull request
Mar 6, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498. Co-authored-by: kevinWangSheng <118158941+kevinWangSheng@users.noreply.github.com>
thebenjaminlee
pushed a commit
to escape-velocity-ventures/openclaw
that referenced
this pull request
Mar 7, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498. Co-authored-by: kevinWangSheng <118158941+kevinWangSheng@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When connecting via shared gateway token (no device identity), the operator scopes were being cleared, causing API operations to fail with 'missing scope' errors.
Fix
This fix preserves scopes when is true, allowing headless/API operator clients to retain their requested scopes.
Related Issue
Fixes #27494