msal

How to properly import and use the MSAL (Microsoft Authentication Library for js) into a typescript react single page application?

瘦欲@ 提交于 2019-11-27 15:49:42
问题 Problem I can't seem to get the MSAL library to import properly into my typescript code. I'm using the MSAL for JS library (which is supposed to have typings) in a simple typescript/react project scaffolded using the create-react-app with react-typescript scripts. I'm new to typescript and not sure if I'm missing something obvious or if there is a problem with the MSAL package when using it with typescript projects. Details: I added the MSAL package from NPM using npm install --save msal . I

B2C - Open registrar form instead login form

馋奶兔 提交于 2019-11-27 04:54:39
问题 I am using Azure B2C authorization for my single app Azure functions. I allowing user to login with google account or with user name / password. In order to show login page I used msal library. Now I have a situation, where I want to show user the registration page directly, and not first the login page and then he have to click create new account. Is there a way to do it? with msal or a different library? 回答1: Nope, but you can create a "Sign up policy" and link directly to that. 来源: https:/