【文件属性】:
文件名称:react-native-msal:适用于React Native的MSAL
文件大小:1.04MB
文件格式:ZIP
更新时间:2021-05-02 13:31:12
android microsoft ios react-native azure-active-directory
React本机
现场演示(网络)
目录
安装
需要React Native> = 0.61
稳定版: $ yarn add react-native-msal
测试版: $ yarn add react-native-msal@beta
不要忘记在之后运行npx pod-install !
设置
在Azure门户中注册您的应用程序
遵循Android安装步骤
遵循iOS设置步骤
用
PublicClientApplication类
此类设计为Android和iOS MSAL库的本机功能的精简包装。
创建一个实例
import PublicClientApplication , { MSALConfiguration } from 'react-native-msal' ;
const config : MSALConfiguration = {
auth : {
【文件预览】:
react-native-msal-master
----.gitignore(596B)
----package.json(3KB)
----src()
--------privateTypes.ts(618B)
--------publicClientApplication.native.ts(3KB)
--------__tests__()
--------index.ts(131B)
--------publicClientApplication.ts(5KB)
--------types.ts(3KB)
--------nativeModule.ts(186B)
----android()
--------build.gradle(3KB)
--------src()
--------gradlew(6KB)
--------gradlew.bat(3KB)
--------gradle.properties(81B)
--------gradle()
--------.npmignore(21B)
----CONTRIBUTING.md(8KB)
----ios()
--------UIViewController+RNMSALUtils.m(2KB)
--------RNMSAL.h(88B)
--------RNMSAL.xcodeproj()
--------UIViewController+RNMSALUtils.h(119B)
--------RNMSAL.xcworkspace()
--------RNMSAL.m(12KB)
--------.npmignore(10B)
----LICENSE(1KB)
----CHANGELOG.md(3KB)
----tsconfig.json(704B)
----reactnativemsal.podspec(579B)
----.github()
--------ISSUE_TEMPLATE()
--------workflows()
----README.md(5KB)
----example()
--------package.json(661B)
--------src()
--------android()
--------metro.config.js(993B)
--------ios()
--------babel.config.js(278B)
--------.gitattributes(56B)
--------index.tsx(316B)
--------app.json(214B)
--------yarn.lock(225KB)
----babel.config.js(77B)
----_assets()
--------ReactNativeMSALLogo.png(116KB)
--------rnmsal_android_setup.png(489KB)
----.gitattributes(16B)
----docs()
--------ios_setup.md(933B)
--------android_setup.md(2KB)
----.editorconfig(283B)
----yarn.lock(481KB)