Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
Added UWP sample client registration
Browse files Browse the repository at this point in the history
  • Loading branch information
leastprivilege committed Jan 23, 2016
1 parent 44ee5dd commit 09057ae
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
28 changes: 27 additions & 1 deletion source/Host.Configuration/Config/Clients.cs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,33 @@ public static List<Client> Get()

RefreshTokenUsage = TokenUsage.OneTimeOnly,
RefreshTokenExpiration = TokenExpiration.Sliding
}
},

new Client
{
ClientName = "UWP Test",
ClientId = "uwp",
ClientSecrets = new List<Secret>
{
new Secret("secret".Sha256())
},

Flow = Flows.AuthorizationCode,
RedirectUris = new List<string>
{
"ms-app://s-1-15-2-491127476-3924255528-3585180829-1321445252-2746266865-3272304314-3346717936/"
},
PostLogoutRedirectUris = new List<string>
{
"ms-app://s-1-15-2-491127476-3924255528-3585180829-1321445252-2746266865-3272304314-3346717936/"
},
AllowedScopes = new List<string>
{
"openid", "profile", "write"
},

AccessTokenType = AccessTokenType.Reference
},
};
}
}
Expand Down
2 changes: 1 addition & 1 deletion source/Host.Configuration/IdentityServerExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static IAppBuilder UseIdentityServer(this IAppBuilder app)
AuthenticationOptions = new AuthenticationOptions
{
IdentityProviders = ConfigureIdentityProviders,
//EnablePostSignOutAutoRedirect = true
EnablePostSignOutAutoRedirect = true
},
//LoggingOptions = new LoggingOptions
Expand Down

0 comments on commit 09057ae

Please sign in to comment.