From da9815145a975a8f394e1bdbd8f631e353645e70 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Mon, 6 Jun 2016 14:34:49 +0200 Subject: [PATCH] change la destination des clameurs --- Yavsc/src/Controllers/OAuthController.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Yavsc/src/Controllers/OAuthController.cs b/Yavsc/src/Controllers/OAuthController.cs index deb760b3..0de0fdae 100644 --- a/Yavsc/src/Controllers/OAuthController.cs +++ b/Yavsc/src/Controllers/OAuthController.cs @@ -240,9 +240,8 @@ namespace Yavsc.Controllers // The other claims won't be visible for the client application. if (claim.Type == ClaimTypes.Name) { - claim.WithDestination(OpenIdConnectConstants.TokenTypes.Bearer); - claim.WithDestination( "code"); - claim.WithDestination("id_token"); + claim.WithDestination( "id_token" ); + claim.WithDestination( "access_token" ); } identity.AddClaim(claim);