oidc-react
Advanced tools
Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2
@@ -25,2 +25,12 @@ import React, { FC } from 'react'; | ||
/** | ||
* Tells the authorization server which grant to execute | ||
* | ||
* Read more: https://tools.ietf.org/html/rfc6749#section-3.1.1 | ||
*/ | ||
responseType?: string; | ||
/** | ||
* A space-delimited list of permissions that the application requires. | ||
*/ | ||
scope?: string; | ||
/** | ||
* Defaults to `windows.location`. | ||
@@ -27,0 +37,0 @@ */ |
@@ -16,3 +16,3 @@ import React, { useState, useEffect } from 'react'; | ||
if (!userManager) { | ||
const { authority, clientId, redirectUri } = props; | ||
const { authority, clientId, redirectUri, responseType, scope, } = props; | ||
userManager = new UserManager({ | ||
@@ -24,4 +24,4 @@ authority, | ||
post_logout_redirect_uri: redirectUri, | ||
response_type: 'code', | ||
scope: 'openid', | ||
response_type: responseType || 'code', | ||
scope: scope || 'openid', | ||
loadUserInfo: true, | ||
@@ -28,0 +28,0 @@ }); |
@@ -6,2 +6,9 @@ # Changelog | ||
# [1.0.0-alpha.2](https://github.com/bjerkio/oidc-react/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2020-04-09) | ||
### Features | ||
* Add responseType and scope properties ([e00454a](https://github.com/bjerkio/oidc-react/commit/e00454a50606d287063a3134cfe3740e2ee360f8)) | ||
# 1.0.0-alpha.1 (2020-04-09) | ||
@@ -8,0 +15,0 @@ |
{ | ||
"name": "oidc-react", | ||
"version": "1.0.0-alpha.1", | ||
"version": "1.0.0-alpha.2", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "", |
@@ -14,7 +14,7 @@ # OIDC React | ||
![oidc-react logo](assets/logo.png) | ||
![oidc-react logo](assets/logo.jpg) | ||
## About | ||
React component (AuthContext) to provide OpenID Connect and OAuth2 protocol support. Has [hooks](guides/HOOKS.md) 🎉 | ||
React component (AuthProvider) to provide OpenID Connect and OAuth2 protocol support. Has [hooks](guides/HOOKS.md) 🎉 | ||
@@ -21,0 +21,0 @@ Based on [oidc-client-js](https://github.com/IdentityModel/oidc-client-js). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15186
244