Coder Social home page Coder Social logo

Comments (21)

unindented avatar unindented commented on September 21, 2024 2

The npm types don't match the module name, which breaks importing: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/adal (instead of adal-angular)

cc @RyanCavanaugh

from azure-activedirectory-library-for-js.

rohitpagariya avatar rohitpagariya commented on September 21, 2024 1

@tushargupta51 / @rohitnarula7176, any updates on this? It would be really nice to have this working.

from azure-activedirectory-library-for-js.

tedvanderveen avatar tedvanderveen commented on September 21, 2024

+1
Would be great when the library itself is written in Typescript!

from azure-activedirectory-library-for-js.

myusrn avatar myusrn commented on September 21, 2024

see adal.js definition request here [ https://github.com/DefinitelyTyped/DefinitelyTyped/issues/3175 ]

from azure-activedirectory-library-for-js.

panesofglass avatar panesofglass commented on September 21, 2024

👍

from azure-activedirectory-library-for-js.

omercs avatar omercs commented on September 21, 2024

That is something new to me. I will look at that in detail and send them a pull request.

from azure-activedirectory-library-for-js.

htryggva avatar htryggva commented on September 21, 2024

+1
This would be awesome

from azure-activedirectory-library-for-js.

zsmorris avatar zsmorris commented on September 21, 2024

+1
Surprising that this doesn't yet exist.

Not being able to load it as a require/AMD/TypeScript module out of the box adds a lot of friction to it's use.

from azure-activedirectory-library-for-js.

Supratentorial avatar Supratentorial commented on September 21, 2024

+1 Would be very helpful.

from azure-activedirectory-library-for-js.

gustav-dahl avatar gustav-dahl commented on September 21, 2024

+1

from azure-activedirectory-library-for-js.

weinong avatar weinong commented on September 21, 2024

+1

from azure-activedirectory-library-for-js.

tedvanderveen avatar tedvanderveen commented on September 21, 2024

With Typescript 1.5 released and all the ES6 and AngularJS (Angular2 is developed in Typescript) goodies that comes with that, an upgrade of the source of this library to Typescript would be of advantage to anyone in my opinion.

from azure-activedirectory-library-for-js.

mmaitre314 avatar mmaitre314 commented on September 21, 2024

I took a first stab at it in PR DefinitelyTyped/DefinitelyTyped#8725. The API shape should be a good match but I am not sure I got the AMD export right (adal-angular requires shims to work with RequireJS, so it's a bit tricky to match that behavior in .d.ts).

from azure-activedirectory-library-for-js.

brphelps avatar brphelps commented on September 21, 2024

Doing an ambient install of this typing currently strips the adal .d.ts -- Is this a bug?

from azure-activedirectory-library-for-js.

darcyparker avatar darcyparker commented on September 21, 2024

@brphelps - I observed the same problem. When I installed with typings install --save --global dt~adal-angular, adal.d.ts is stripped out... You probably worked around this. But in case it helps others, I worked around it by manually adding the d.ts files to my project.

from azure-activedirectory-library-for-js.

 avatar commented on September 21, 2024

So I see there are now types out in DefinitelyTyped, but the documentation says they are for 1.0.6, while the actual adal JS library is up to 1.0.13. Do I have to use the 1.0.6 adal library if I want to use Typescript, or will it work with 1.0.13?

from azure-activedirectory-library-for-js.

maitre-matt avatar maitre-matt commented on September 21, 2024

I don't believe there has been API breaking changes between 1.0.6 and 1.0.13, so it should be ok. The type definition may be missing newer APIs (when that happens the trick is to cast to any, or better: send a PR on the definition). There is also a packaging issue with ADAL putting two JS files in a single NPM package and DefinitelyTyped requiring two packages instead DefinitelyTyped/DefinitelyTyped#12586

from azure-activedirectory-library-for-js.

brentschmaltz avatar brentschmaltz commented on September 21, 2024

@tushargupta51 @rohitnarula7176 can we get this into 1.0.14?

from azure-activedirectory-library-for-js.

RehanSaeed avatar RehanSaeed commented on September 21, 2024

Using the following import statement does not seem to play well with @types/adal:

import * as adal from "adal-angular/dist/adal.min";

I get errors saying the decleration file could not be found.

from azure-activedirectory-library-for-js.

grumar avatar grumar commented on September 21, 2024

@types was changed from adal to adal-angular few days ago.
DefinitelyTyped #22549
DefinitelyTyped #22565

from azure-activedirectory-library-for-js.

sameerag avatar sameerag commented on September 21, 2024

All current authentication work from microsoft is delivered through msal js library here. adal js is supported only for security fixes. We would recommend to move to msal js for any advanced feature asks.

Closing this issue.

from azure-activedirectory-library-for-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.