fix: enforce device authorization grant type (#400)
This commit is contained in:
parent
09bdd1dca2
commit
a4dbe2a973
4 changed files with 46 additions and 5 deletions
|
@ -49,6 +49,7 @@ func init() {
|
|||
storage.RegisterClients(
|
||||
storage.NativeClient("native"),
|
||||
storage.WebClient("web", "secret", "https://example.com"),
|
||||
storage.DeviceClient("device", "secret"),
|
||||
storage.WebClient("api", "secret"),
|
||||
)
|
||||
|
||||
|
@ -336,7 +337,7 @@ func TestRoutes(t *testing.T) {
|
|||
name: "device authorization",
|
||||
method: http.MethodGet,
|
||||
path: testProvider.DeviceAuthorizationEndpoint().Relative(),
|
||||
basicAuth: &basicAuth{"web", "secret"},
|
||||
basicAuth: &basicAuth{"device", "secret"},
|
||||
values: map[string]string{
|
||||
"scope": oidc.SpaceDelimitedArray{oidc.ScopeOpenID, oidc.ScopeOfflineAccess}.Encode(),
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue