Repository navigation
Commit f98ebed
committed
feat(sdk): let a credential provider perform the OAuth refresh grant itself
Executor performed the OAuth refresh exchange itself, so it had to ask the
credential provider for the stored refresh token and the client secret, which
a sealed store cannot hand over. CredentialProvider gains an optional
refreshGrant: the provider spends the refresh token, seals the new tokens under
the same item ids and returns only lifetime and scope, which the host
re-validates. Providers without it, client_credentials grants and first-party
apps keep the existing host path unchanged.1 parent d27e673 commit f98ebed
7 files changed
Lines changed: 1524 additions & 54 deletions
File tree
- .changeset
- packages/core/sdk/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
113 | 124 | | |
114 | 125 | | |
115 | 126 | | |
| |||
0 commit comments