Skip to content

Commit 790b0c9

Browse files
committed
Configuring grants properly for development application registration
1 parent 1ae81dc commit 790b0c9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Source/Kernel/Setup/Authentication/AuthenticationService.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,16 @@ public async Task EnsureDefaultClientCredentials()
9191
{
9292
Id = Guid.NewGuid().ToString(),
9393
ClientId = defaultClientId,
94-
ClientSecret = defaultClientSecret
94+
ClientSecret = defaultClientSecret,
95+
Type = "confidential",
96+
ConsentType = "implicit",
97+
Permissions =
98+
[
99+
"ept:token",
100+
"gt:client_credentials",
101+
"gt:password",
102+
"gt:refresh_token"
103+
]
95104
};
96105

97106
await applicationStorage.Create(application);

0 commit comments

Comments
 (0)