Skip to content
This repository has been archived by the owner on Jun 26, 2021. It is now read-only.

Please Split this Repository into adal-angular and adal.js #659

Closed
RehanSaeed opened this issue Nov 9, 2017 · 22 comments
Closed

Please Split this Repository into adal-angular and adal.js #659

RehanSaeed opened this issue Nov 9, 2017 · 22 comments
Assignees

Comments

@RehanSaeed
Copy link

RehanSaeed commented Nov 9, 2017

The SPA world has moved on from Angular 1. There are now a myriad of frameworks out there. This project should be split into two repositories, adal-angular and adal.js.

For any developer coming from React, Vue.js, Aurelia, Ember, Polymer etc. taking one look at the ReadMe for this repo, they'd be forgiven for thinking that they'd arrived at the wrong place. All the documentation is specific to Angular. I really want to see a simple ReadMe for adal.js I can read in 5 mins and get going quickly.

As well as the repository, the NPM package should also be split. To import just adal.js in my code I have to write this magic incantation:

import "adal-angular/dist/adal.min";

Instead of:

import "adal";

Finally, this even causes issues with TypeScript (See #61). I'm trying to use @types/adal (The code in this repo should really be written in TypeScript but that is another matter) but the type decleration files get mixed up because adal and adal-angular both exist in there.

@ralexand56
Copy link

Yes, this is common sense

@unindented
Copy link

@rohitnarula7176 any progress on this?

@eelkram
Copy link

eelkram commented Jan 3, 2018

This would be a huge help!

@grumar
Copy link

grumar commented Jan 9, 2018

+1

@hkusulja
Copy link

I am also interested in having separate, MS ADAL Angular5 supported library

@talorlik
Copy link

I've been battling with this like crazy.

There's also very confusing bits of information and explanation how to go about this process.

I'm most interested in an Angular 5 implementation.

@aciccarello
Copy link

This would help with getting TypeScript definitions (see DefinitelyTyped/DefinitelyTyped#12586)

@nithinmohantk
Copy link

I agree this needs a split into two repos.

@Shenrak
Copy link

Shenrak commented Mar 27, 2018

I can't even launch my app because 'angular' isn't defined in my react project...

Needs a split.

@aciccarello
Copy link

@Shenrak, you should be able to use the pure JS file that doesn't require angular. Splitting the repo is more about convenience than technical limitations.

@TedPattison
Copy link

TedPattison commented Jun 8, 2018

If you are not using angular.js, it is really difficult to to decide the best way to consume adal.js from TypeScript and webpack. It seems like your team spent the energy to create d.ts support for angular.js and now you have run out of energy to provide d.ts files and TypeScript support for adal.js in anything else including just using adal.js by itself. It doesn't seem like it would be a bigger effort to create an official adal.d.ts file and it would make adoption of this library sooooooo much easier.

Your response that "you should be able to use the pure JS file that doesn't require angular. Splitting the repo is more about convenience than technical limitations." Yes, I agree it would be very convenient not to spend 2 days going testing out and experimenting with the with d.ts files and TypeScript support in NPM packages such as from adal-angular, modular-adal-angular, adal-ts and the deprecated adal.d.ts file your team created a ways back..

The confusion and lack of Microsoft guidance about using adal.js with typescript and webpack when not using angular.js is more than a lack of convenience. It is a serious roadblock to adoption.

@ralexand56
Copy link

I believe they are putting their development work into the msal.js library. It certainly would be nice if there was some guidance though.

@TallOrderDev
Copy link

+1 No comment from anyone from Microsoft yet? 8 months and we should at least have an idea of whats happening by now. Please please, can we at least get some feedback.

@baywet
Copy link
Member

baywet commented Jun 20, 2018

Pinged a Microsoft PM by email today, hopefully that should help get an answer at least.

@navyasric
Copy link
Contributor

Thank you all for the feedback. We are investing future efforts in the MSAL.js library and will be creating separate packages for supporting frameworks.

@mlynam
Copy link

mlynam commented Jun 5, 2019

Hey @navyasric has this issue been abandoned?

@baywet
Copy link
Member

baywet commented Jun 5, 2019

@mlynam this has been addressed in msal as you can see here https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib

@mlynam
Copy link

mlynam commented Jun 5, 2019

Thank you @baywet. I was confused by the ADAL Microsoft docs. They pointed me at the adal-angular library instead of msal.

@baywet
Copy link
Member

baywet commented Jun 5, 2019

do you still have the link? don't hesitate to open issues on the docs as well (all the way at the bottom, they also open github issues)

@mlynam
Copy link

mlynam commented Jun 5, 2019

Yeah I got it from here: https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-authentication-libraries. I admit that I glanced over the note asking if I was looking for Azure 2.0 (MSAL)...

@baywet
Copy link
Member

baywet commented Jun 5, 2019

thanks. yeah this page is probably going to stay like this as it already has a note pointing to msal

@sameerag
Copy link
Member

All current authentication work from microsoft is delivered through msal js library here. adal js is still supported only for security fixes.

For this specific question, we have structured msal js better and there is a split between msal-core and msal-angular, please checkout our repo.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests