Thinktecture Identitiy Server and AngularJS SPA - angularjs

Is there any js library that I can hook up into my AngularJS SPA that authenticates with Thinktecture Identity Server? AzureAD has adal.js to make it work with AzureAD, is there any I can use with Thinktecture ?

Related

Multiple authentications AzureAD and ASP.NET Identity using keycloak

Front End: Angular , ASP.NET MVC
Middleware: ASP.NET WEB API uses ASP.NET Identity (Localdb for login) and ASP.NET API uses Azure AD
ASP.NET MVC using Asp.NET Identity
Angular using API Azure AD
Now I have to integrate Angular application in asp.net mvc using iframe. To enable single sign on how to integrate ASP.NET Identity and Azure AD in keycloak.
Any suggestions on this.

Is there a sample example where AngularJS authentication is setup with Azure AD and Spring boot

We have two separate apps for both front-end written in AngularJS (from 5 years ago) and back-end in Spring boot which are deployed separately
Is there a way of using Azure AD authentication with AngularJS front-end and Spring-boot back-end?
Is there a way of using Azure AD authentication with AngularJS
front-end and Spring-boot back-end?
To use Azure AD authentication with AngularJS (Front-end) and spring-boot ( back end) ,Here is the sample/Example .
Also , You can grant Authentication using Microsoft identity platform and OAuth 2.0 authorization code flow .
Reference:
. Angular MSAL Login example| GitHub
. Authentication for application with Azure AD

IdentityServer4 and client with dynamic subdomain

I have setup Identity server 4 for our Angular application that will interact with a WebAPI
Identityserver is supposed to be used with Hybrid flow to get the token.
I have following issue -
My Angular application is defined in a way that it supports multiple tenant with subdomain like
tenant1.abc.com
tenant2.abc.com
Now as the angular application is the same and serving the multiple tenants, How can I defined client on Identityserver as it has subdomain and Identityserver will not be able to match the Client RedirectUris
and PostLogoutURI

ASP.NET Core 2 - Angular 5 Azure Active Directory Authentication

Is it possible to have an ASP.NET Core 2 with Angular 5 and Azure AD Authentication? What I mean is implement the AD Auth using ASP.NET Core 2 and when the authentication is successful, then redirect to the Angular 5 app with some claims and tokens so that any calls to an ASP.NET Core API from Angular will include the authentication token/claims.
I know there is the ADAL angular wrapper you can actually implement the Azure AD Auth, but just wanted to know if my scenario could work...
You can, I have an app doing that now. Basically your Angular frontend will redirect the user to login at Azure.. Azure will then redirect back to your angular app with the token. ADAL plugin should snag that token from the callback URL. You then make the API calls with the Token. The .Net Core backend will verify the token with Azure.
So think of it this way: User -> AngularApp -> Azure Login -> AngularApp w/token -> API Call to backend w/token -> API Backend verifies token with Azure each call

How to bypass AzureAD authentication using OpenID and Owin middleware for Web API 2 controller within ASP.NET MVC project

I have an ASP.NET MVC5 application which has WEB API2 project with few controllers within it. I have setup AzureAD authentication for the ASP.NET MVC5 project using AzureAD and OpenID connect and OWIN middleware.
Everything is working fine from ASP.NET MVC project point of view. The WEB API2 controller are used here to process the requests coming from angularjs, Android
and iOS app. There is a requirement for a WebAPI controller to process requests from unauthenticated clients (angularjs, Android, iOS apps) which issue AJAX requests.
Prior to the AzureAD authentication setup it was configured with on premise ADFS authentication. In this case I followed the below link to by pass on premise ADFS authentication for the
WEB API2 controllers and it worked fine for me.
Can I bypass organizational authentication for a WebAPI controller inside an MVC app?
Can anyone help me to know how to bypass the azuread authentication for the WEB API2 controllers to allow requests from unauthenticated clients in this case with some code samples ?
The web API controller is access-able for anonymous user by default. If you got the unauthenticated issue(401) when the anonymous user access that controller, please check whether there is Authorize attribute for the specific controller and remove that attribute.

Resources