Move initOAuth attacher out of core constructor
This commit is contained in:
@@ -104,8 +104,6 @@ module.exports = function SwaggerUI(opts) {
|
|||||||
|
|
||||||
var system = store.getSystem()
|
var system = store.getSystem()
|
||||||
|
|
||||||
system.initOAuth = system.authActions.configureAuth
|
|
||||||
|
|
||||||
const downloadSpec = (fetchedConfig) => {
|
const downloadSpec = (fetchedConfig) => {
|
||||||
if(typeof constructorConfig !== "object") {
|
if(typeof constructorConfig !== "object") {
|
||||||
return system
|
return system
|
||||||
|
|||||||
@@ -5,6 +5,9 @@ import * as specWrapActionReplacements from "./spec-wrap-actions"
|
|||||||
|
|
||||||
export default function() {
|
export default function() {
|
||||||
return {
|
return {
|
||||||
|
afterLoad(system) {
|
||||||
|
system.initOAuth = system.authActions.configureAuth
|
||||||
|
},
|
||||||
statePlugins: {
|
statePlugins: {
|
||||||
auth: {
|
auth: {
|
||||||
reducers,
|
reducers,
|
||||||
|
|||||||
Reference in New Issue
Block a user