Kimlik Doğrulama için IdentityServer4 kullanacak bir AngularJS uygulaması yapıyorum.AngularJS - IdentityServer4.Quickstart.UI - 'AuthenticationProperties', belirsiz bir referanstır
Yalnızım var. Net çekirdek uygulamasında .pi Çekirdek 2.0 uygulamasında, api denetleyicisini çağıran açısal uygulama. http://localhost:5050/.well-known/openid-configuration
'a göz atarsam jsonu döndürürüm. Eklediğim callback.html
yılında
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() {
mgr.signinRedirect();
}
:
benim kimlik doğrulama hizmeti için bir temel olarak this örnek kullandık
yönlendirmek için çalışıyor<body>
<script src="scripts/oidc-client.js"></script>
<script>
new Oidc.UserManager().signinRedirectCallback().then(function() {
window.location = "index.html";
}).catch(function (e) {
console.error(e);
});
</script>
</body>
:
http://localhost:5050/account/login?returnUrl=%2Fconnect%2Fauthorize%2Fcallback%3Fclient_id%3Djs%26redirect_uri%3Dhttp%253A%252F%252Flocalhost%253A5050%252FLocalizationAdmin%252Fcallback.html%26response_type%3Did_token%2520token%26scope%3Dopenid%2520profile%2520api1%26state%3Dd526351a26f74202badb7685022a6549%26nonce%3D6c858921378645ca8fcad973eb26cc72
Ancak sadece IdentityServer4 oturum açma scr yönlendirmek istiyorum een. Bunu nasıl başarabilirim? Herhangi bir yardım takdir edildi.
Düzenleme: Ben buradan UI şablonları eklemiş
: Ben .Net Çekirdek 2.0 kullanıyorum çünkü
https://github.com/IdentityServer/IdentityServer4.Quickstart.UI
Ama birtakım hatalar alıyorum, bu olabilir versiyon: 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 Proje gösterme sorunu github here'a eklendi.
Teşekkürler, ama UI ekleme konusunda orada bir şey yok mu? –