|
|
|
@ -14,15 +14,15 @@ public static class Config
|
|
|
|
|
public static IEnumerable<ApiScope> ApiScopes =>
|
|
|
|
|
new ApiScope[]
|
|
|
|
|
{
|
|
|
|
|
new ApiScope("scope1"),
|
|
|
|
|
new ApiScope("scope2"),
|
|
|
|
|
new ApiScope("optifitApp", "Optifit App API Scope"),
|
|
|
|
|
//new ApiScope("scope2"),
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
public static IEnumerable<Client> Clients =>
|
|
|
|
|
new Client[]
|
|
|
|
|
{
|
|
|
|
|
// m2m client credentials flow client
|
|
|
|
|
new Client
|
|
|
|
|
/*new Client
|
|
|
|
|
{
|
|
|
|
|
ClientId = "m2m.client",
|
|
|
|
|
ClientName = "Client Credentials Client",
|
|
|
|
@ -31,10 +31,10 @@ public static class Config
|
|
|
|
|
ClientSecrets = { new Secret("511536EF-F270-4058-80CA-1C89C192F69A".Sha256()) },
|
|
|
|
|
|
|
|
|
|
AllowedScopes = { "scope1" }
|
|
|
|
|
},
|
|
|
|
|
},*/
|
|
|
|
|
|
|
|
|
|
// interactive client using code flow + pkce
|
|
|
|
|
new Client
|
|
|
|
|
/*new Client
|
|
|
|
|
{
|
|
|
|
|
ClientId = "interactive",
|
|
|
|
|
ClientSecrets = { new Secret("49C1A7E1-0C79-4A89-A3D6-A37998FB86B0".Sha256()) },
|
|
|
|
@ -47,6 +47,16 @@ public static class Config
|
|
|
|
|
|
|
|
|
|
AllowOfflineAccess = true,
|
|
|
|
|
AllowedScopes = { "openid", "profile", "scope2" }
|
|
|
|
|
},
|
|
|
|
|
},*/
|
|
|
|
|
|
|
|
|
|
new Client
|
|
|
|
|
{
|
|
|
|
|
ClientId = "postman",
|
|
|
|
|
ClientName = "Postman",
|
|
|
|
|
AllowedScopes = {"openid", "profile", "optifitApp"},
|
|
|
|
|
RedirectUris = {"https://www.getpostman.com/oauth2/callback"},
|
|
|
|
|
ClientSecrets = new[] {new Secret("NotASecret".Sha256())},
|
|
|
|
|
AllowedGrantTypes = {GrantType.ResourceOwnerPassword}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|