Skip to content

Commit

Permalink
Merge pull request #13873 from abpframework/auto-merge/rel-6-0/1321
Browse files Browse the repository at this point in the history
Merge branch dev with rel-6.0
  • Loading branch information
maliming authored Aug 30, 2022
2 parents a1bfdc0 + 8dedc30 commit 7663ff8
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ private async Task CreateApplicationAsync(
{
application.Permissions.Add(OpenIddictConstants.Permissions.Endpoints.Token);
application.Permissions.Add(OpenIddictConstants.Permissions.Endpoints.Revocation);
application.Permissions.Add(OpenIddictConstants.Permissions.Endpoints.Introspection);
}

if (grantType == OpenIddictConstants.GrantTypes.ClientCredentials)
Expand All @@ -220,6 +221,12 @@ private async Task CreateApplicationAsync(
application.Permissions.Add(OpenIddictConstants.Permissions.GrantTypes.RefreshToken);
}

if (grantType == OpenIddictConstants.GrantTypes.DeviceCode)
{
application.Permissions.Add(OpenIddictConstants.Permissions.GrantTypes.DeviceCode);
application.Permissions.Add(OpenIddictConstants.Permissions.Endpoints.Device);
}

if (grantType == OpenIddictConstants.GrantTypes.Implicit)
{
application.Permissions.Add(OpenIddictConstants.Permissions.ResponseTypes.IdToken);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ private async Task CreateApplicationAsync(
{
application.Permissions.Add(OpenIddictConstants.Permissions.Endpoints.Token);
application.Permissions.Add(OpenIddictConstants.Permissions.Endpoints.Revocation);
application.Permissions.Add(OpenIddictConstants.Permissions.Endpoints.Introspection);
}

if (grantType == OpenIddictConstants.GrantTypes.ClientCredentials)
Expand All @@ -220,6 +221,12 @@ private async Task CreateApplicationAsync(
application.Permissions.Add(OpenIddictConstants.Permissions.GrantTypes.RefreshToken);
}

if (grantType == OpenIddictConstants.GrantTypes.DeviceCode)
{
application.Permissions.Add(OpenIddictConstants.Permissions.GrantTypes.DeviceCode);
application.Permissions.Add(OpenIddictConstants.Permissions.Endpoints.Device);
}

if (grantType == OpenIddictConstants.GrantTypes.Implicit)
{
application.Permissions.Add(OpenIddictConstants.Permissions.ResponseTypes.IdToken);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ private async Task CreateApplicationAsync(
{
application.Permissions.Add(OpenIddictConstants.Permissions.Endpoints.Token);
application.Permissions.Add(OpenIddictConstants.Permissions.Endpoints.Revocation);
application.Permissions.Add(OpenIddictConstants.Permissions.Endpoints.Introspection);
}

if (grantType == OpenIddictConstants.GrantTypes.ClientCredentials)
Expand All @@ -303,6 +304,12 @@ private async Task CreateApplicationAsync(
application.Permissions.Add(OpenIddictConstants.Permissions.GrantTypes.RefreshToken);
}

if (grantType == OpenIddictConstants.GrantTypes.DeviceCode)
{
application.Permissions.Add(OpenIddictConstants.Permissions.GrantTypes.DeviceCode);
application.Permissions.Add(OpenIddictConstants.Permissions.Endpoints.Device);
}

if (grantType == OpenIddictConstants.GrantTypes.Implicit)
{
application.Permissions.Add(OpenIddictConstants.Permissions.ResponseTypes.IdToken);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ private async Task CreateApplicationAsync(
{
application.Permissions.Add(OpenIddictConstants.Permissions.Endpoints.Token);
application.Permissions.Add(OpenIddictConstants.Permissions.Endpoints.Revocation);
application.Permissions.Add(OpenIddictConstants.Permissions.Endpoints.Introspection);
}

if (grantType == OpenIddictConstants.GrantTypes.ClientCredentials)
Expand All @@ -272,6 +273,12 @@ private async Task CreateApplicationAsync(
application.Permissions.Add(OpenIddictConstants.Permissions.GrantTypes.RefreshToken);
}

if (grantType == OpenIddictConstants.GrantTypes.DeviceCode)
{
application.Permissions.Add(OpenIddictConstants.Permissions.GrantTypes.DeviceCode);
application.Permissions.Add(OpenIddictConstants.Permissions.Endpoints.Device);
}

if (grantType == OpenIddictConstants.GrantTypes.Implicit)
{
application.Permissions.Add(OpenIddictConstants.Permissions.ResponseTypes.IdToken);
Expand Down

0 comments on commit 7663ff8

Please sign in to comment.