Comments (21)
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
)
from azure-activedirectory-library-for-js.
@tushargupta51 / @rohitnarula7176, any updates on this? It would be really nice to have this working.
from azure-activedirectory-library-for-js.
+1
Would be great when the library itself is written in Typescript!
from azure-activedirectory-library-for-js.
see adal.js definition request here [ https://github.com/DefinitelyTyped/DefinitelyTyped/issues/3175 ]
from azure-activedirectory-library-for-js.
👍
from azure-activedirectory-library-for-js.
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.
+1
This would be awesome
from azure-activedirectory-library-for-js.
+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.
+1 Would be very helpful.
from azure-activedirectory-library-for-js.
+1
from azure-activedirectory-library-for-js.
+1
from azure-activedirectory-library-for-js.
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.
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.
Doing an ambient install of this typing currently strips the adal .d.ts -- Is this a bug?
from azure-activedirectory-library-for-js.
@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.
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.
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.
@tushargupta51 @rohitnarula7176 can we get this into 1.0.14?
from azure-activedirectory-library-for-js.
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.
@types
was changed from adal
to adal-angular
few days ago.
DefinitelyTyped #22549
DefinitelyTyped #22565
from azure-activedirectory-library-for-js.
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)
- adal login failed on SharePoint Document library HOT 2
- AADSTS50058: Silent Sign-in fails on Safari browser in Angular 7 app HOT 3
- Is there any work is happening to solve Samesite cookie issue fro google chrome browser? HOT 3
- Questions regarding SameSite Chrome 80 Issue HOT 3
- [Help wanted] Redirect flow + react-router HOT 1
- After blocking third party cookies in the browser, browser treating login.microsoftonline.com as third party cookies and blocking it. HOT 4
- Requesting an $on alert when a token is refreshed to update app headers appropriately. HOT 2
- Login with client secret HOT 1
- Resource Owner Password Credential Grant in browser HOT 1
- Infinite loop when unauthorized user tries to access page (authorization via adal-angular) HOT 1
- localStorage doesn't get update
- Acquire token silently fails when MFA code is required HOT 1
- Support for `/oauth2/v2.0/authorize` HOT 3
- After migrating from 0.x to 1.x msal can't get token from URL HOT 1
- after some time redirected to 'The reply URL specified in the request does not match' HOT 1
- CDN Links from the README don't work HOT 3
- SAML Support ? HOT 1
- Optimize for better minification HOT 1
- Verifying signature of JWT issued by Azure AD HOT 4
- Can ADAL.js point to v2.0 endpoints HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-activedirectory-library-for-js.