Paolo B Paolo B - 5 months ago 83
AngularJS Question

AngularJS - IdentityServer4.Quickstart.UI - 'AuthenticationProperties' is an ambiguous reference

I'm implementing an AngularJS app that will use IdentityServer4 for Authorization.

I have a stand alone Angular app within a .Net Core 2.0 app that calls the api controller in the .net core app. if I browse to

I am getting the json returned.

I have used this example as a basis for my auth service:

function authService() {

var config = {
authority: "http://localhost:5050",
client_id: "js",
redirect_uri: "http://localhost:5050/LocalizationAdmin/callback.html",
response_type: "id_token token",
scope: "openid profile api1",
post_logout_redirect_uri: "http://localhost:5050/LocalizationAdmin/index.html"
var mgr = new Oidc.UserManager(config);

mgr.getUser().then(function (user) {
if (user) {
log("User logged in", user.profile);
} else {
log("User not logged in");

var service = {
login: login,
logout: logout,
return service;

function login() {

I have added:

<script src="scripts/oidc-client.js"></script>
new Oidc.UserManager().signinRedirectCallback().then(function () {
window.location = "index.html";
}).catch(function (e) {

It is trying to redirect to:


However I just want it to redirect to the IdentityServer4 login screen. How can I achieve this? Any help appreciated.


I have added the UI templates from here:

But I am getting a number of errors, could this be because I am using .Net Core 2.0 version:
assemblyref://IdentityServer4 (2.0.0-rc1-update1)

Error CS0104 'AuthenticationProperties' is an ambiguous reference between 'Microsoft.AspNetCore.Authentication.AuthenticationProperties' and 'Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties'

Demo Project showing issue added to github here.

Answer Source

I have no idea how stable this is but I just used the powershell command pointing to the dev branch and it seems to be working.

iex ((New-Object System.Net.WebClient).DownloadString(''))

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download