akaronte / azure-ad-back-client Goto Github PK
View Code? Open in Web Editor NEWThis is a minimal exmaple for a login with azure active directory with a backend Node js express in Typescript and vue client un javascript
License: MIT License
This is a minimal exmaple for a login with azure active directory with a backend Node js express in Typescript and vue client un javascript
License: MIT License
Hi, Hope you're alright mate. I
'm just wondering if I have my understanding correct In the frontend you have app.vue where there are calls to the login.ts file this is where API calls to the backend are handled in app.ts is that correct?
Thanks :)
getting below issue at the time of server start
src/app.ts:37:31 - error TS2769: No overload matches this call.
Overload 1 of 2, '(options: IOIDCStrategyOptionWithRequest, verify: VerifyOIDCFunctionWithReq): OIDCStrategy', gave the following error.
Argument of type '{ identityMetadata: string; clientID: string; responseType: "code id_token"; responseMode: "form_post"; redirectUrl: string; allowHttpForRedirectUrl: true;
clientSecret: string; validateIssuer: true; ... 7 more ...; cookieEncryptionKeys: { ...;
}[]; }' is not assignable to parameter of type 'IOIDCStrategyOptionWithRequest'.
Property 'passReqToCallback' is missing in type '{ identityMetadata: string; clientID: string; responseType: "code id_token"; responseMode: "form_post"; redirectUrl: string; allowHttpForRedirectUrl: true; clientSecret: string; validateIssuer: true; ... 7 more ...; cookieEncryptionKeys: { ...; }[]; }' but required in type 'IOIDCStrategyOptionWithRequest'.
Overload 2 of 2, '(options: IOIDCStrategyOptionWithoutRequest, verify: VerifyOIDCFunction): OIDCStrategy', gave the following error.
Argument of type '{ identityMetadata: string; clientID: string; responseType: "code id_token"; responseMode: "form_post"; redirectUrl: string; allowHttpForRedirectUrl: true;
clientSecret: string; validateIssuer: true; ... 7 more ...; cookieEncryptionKeys: { ...;
}[]; }' is not assignable to parameter of type 'IOIDCStrategyOptionWithoutRequest'.
Property 'passReqToCallback' is missing in type '{ identityMetadata: string; clientID: string; responseType: "code id_token"; responseMode: "form_post"; redirectUrl: string; allowHttpForRedirectUrl: true; clientSecret: string; validateIssuer: true; ... 7 more ...; cookieEncryptionKeys: { ...; }[]; }' but required in type 'IOIDCStrategyOptionWithoutRequest'.
37 passport.use(new OIDCStrategy({
~
38 identityMetadata: passconfig.creds.identityMetadata,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
58 //clockSkew: 0
~~~~~~~~~~~~~~~~
59 },
~
node_modules/@types/passport-azure-ad/oidc-strategy.d.ts:22:5
22 passReqToCallback: true;
~~~~~~~~~~~~~~~~~
'passReqToCallback' is declared here.
node_modules/@types/passport-azure-ad/oidc-strategy.d.ts:26:5
26 passReqToCallback: false;
~~~~~~~~~~~~~~~~~
'passReqToCallback' is declared here.
Found 1 error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.