Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
qualify constants - otherwise will fail in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
leastprivilege committed Nov 28, 2018
1 parent 3c0e86e commit a2511bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion host/Quickstart/Account/AccountController.cs
Expand Up @@ -231,7 +231,7 @@ private async Task<LoginViewModel> BuildLoginViewModelAsync(string returnUrl)
var context = await _interaction.GetAuthorizationContextAsync(returnUrl);
if (context?.IdP != null)
{
var local = context.IdP == IdentityServerConstants.LocalIdentityProvider;
var local = context.IdP == IdentityServer4.IdentityServerConstants.LocalIdentityProvider;

// this is meant to short circuit the UI and only trigger the one external IdP
var vm = new LoginViewModel
Expand Down
6 changes: 3 additions & 3 deletions host/Quickstart/Device/DeviceController.cs
Expand Up @@ -100,7 +100,7 @@ private async Task<ProcessConsentResult> ProcessConsent(DeviceAuthorizationInput
var scopes = model.ScopesConsented;
if (ConsentOptions.EnableOfflineAccess == false)
{
scopes = scopes.Where(x => x != IdentityServerConstants.StandardScopes.OfflineAccess);
scopes = scopes.Where(x => x != IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess);
}

grantedConsent = new ConsentResponse
Expand Down Expand Up @@ -188,7 +188,7 @@ private DeviceAuthorizationViewModel CreateConsentViewModel(string userCode, Dev
{
vm.ResourceScopes = vm.ResourceScopes.Union(new[]
{
GetOfflineAccessScope(vm.ScopesConsented.Contains(IdentityServerConstants.StandardScopes.OfflineAccess) || model == null)
GetOfflineAccessScope(vm.ScopesConsented.Contains(IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess) || model == null)
});
}

Expand Down Expand Up @@ -224,7 +224,7 @@ private ScopeViewModel GetOfflineAccessScope(bool check)
{
return new ScopeViewModel
{
Name = IdentityServerConstants.StandardScopes.OfflineAccess,
Name = IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess,
DisplayName = ConsentOptions.OfflineAccessDisplayName,
Description = ConsentOptions.OfflineAccessDescription,
Emphasize = true,
Expand Down

0 comments on commit a2511bd

Please sign in to comment.