feat(swagger-ui-react): Add oauth2RedirectUrl prop (#8028)
This commit is contained in:
committed by
GitHub
parent
c70b9d7b7c
commit
03a981ae4f
@@ -36,6 +36,7 @@ export default class SwaggerUI extends React.Component {
|
||||
filter: ["boolean", "string"].includes(typeof this.props.filter) ? this.props.filter : false,
|
||||
persistAuthorization: this.props.persistAuthorization,
|
||||
withCredentials: this.props.withCredentials,
|
||||
oauth2RedirectUrl: this.props.oauth2RedirectUrl
|
||||
})
|
||||
|
||||
this.system = ui
|
||||
@@ -131,6 +132,7 @@ SwaggerUI.propTypes = {
|
||||
displayRequestDuration: PropTypes.bool,
|
||||
persistAuthorization: PropTypes.bool,
|
||||
withCredentials: PropTypes.bool,
|
||||
oauth2RedirectUrl: PropTypes.string,
|
||||
}
|
||||
|
||||
SwaggerUI.defaultProps = {
|
||||
|
||||
Reference in New Issue
Block a user