Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updates integration tests for new openapi #146

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Okta Node SDK Changelog

## PENDING

### Breaking Changes

- `addFactor()` changed to `enrollFactor()`
- `models.*Factor` classes are now `models.*UserFactor`
- `createRule()` changed to `changeGroupRule()`
- `listRules()` changed to `listGroupRules()`
- `deactivateRule()` changed to `deactivateGroupRule()`
- `user.addRole()` changed to `user.assignRole()`
- `user.forgotPassword()` changed to `user.forgotPasswordSetNewPassword()`

## 3.2.0

- [#128](https://github.com/okta/okta-sdk-nodejs/pull/128) Adds support for OAuth
Expand Down
13 changes: 0 additions & 13 deletions src/factories/ApplicationFactory.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
/*!
* Copyright (c) 2017-2018, Okta, Inc. and/or its affiliates. All rights reserved.
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
*
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
* See the License for the specific language governing permissions and limitations under the License.
*/


/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */

const ModelResolutionFactory = require('../resolution-factory');
Expand Down
13 changes: 0 additions & 13 deletions src/factories/BrowserPluginApplicationFactory.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
/*!
* Copyright (c) 2017-2018, Okta, Inc. and/or its affiliates. All rights reserved.
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
*
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
* See the License for the specific language governing permissions and limitations under the License.
*/


/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */

const ModelResolutionFactory = require('../resolution-factory');
Expand Down
15 changes: 2 additions & 13 deletions src/factories/PolicyFactory.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
/*!
* Copyright (c) 2017-2018, Okta, Inc. and/or its affiliates. All rights reserved.
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
*
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
* See the License for the specific language governing permissions and limitations under the License.
*/


/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */

const ModelResolutionFactory = require('../resolution-factory');
Expand All @@ -21,6 +8,8 @@ const models = require('../models');
class PolicyFactory extends ModelResolutionFactory {
getMapping() {
return {
'IDP_DISCOVERY': models.IdentityProviderPolicy,
'OAUTH_AUTHORIZATION_POLICY': models.OAuthAuthorizationPolicy,
'OKTA_SIGN_ON': models.OktaSignOnPolicy,
'PASSWORD': models.PasswordPolicy,
};
Expand Down
13 changes: 0 additions & 13 deletions src/factories/PolicyRuleFactory.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
/*!
* Copyright (c) 2017-2018, Okta, Inc. and/or its affiliates. All rights reserved.
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
*
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
* See the License for the specific language governing permissions and limitations under the License.
*/


/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */

const ModelResolutionFactory = require('../resolution-factory');
Expand Down
29 changes: 29 additions & 0 deletions src/factories/UserFactorFactory.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */

const ModelResolutionFactory = require('../resolution-factory');
/*eslint-disable no-unused-vars*/
const factories = require('./');
const models = require('../models');

class UserFactorFactory extends ModelResolutionFactory {
getMapping() {
return {
'call': models.CallUserFactor,
'email': models.EmailUserFactor,
'push': models.PushUserFactor,
'question': models.SecurityQuestionUserFactor,
'sms': models.SmsUserFactor,
'token': models.TokenUserFactor,
'token:hardware': models.HardwareUserFactor,
'token:software:totp': models.TotpUserFactor,
'u2f': models.U2fUserFactor,
'web': models.WebUserFactor,
};
}

getResolutionProperty() {
return 'factorType';
}
}

module.exports = UserFactorFactory;
15 changes: 1 addition & 14 deletions src/factories/index.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,8 @@
/*!
* Copyright (c) 2017-2018, Okta, Inc. and/or its affiliates. All rights reserved.
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
*
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
* See the License for the specific language governing permissions and limitations under the License.
*/


/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */

/** @ignore */
exports.Application = require('./ApplicationFactory');
exports.BrowserPluginApplication = require('./BrowserPluginApplicationFactory');
exports.Factor = require('./FactorFactory');
exports.Policy = require('./PolicyFactory');
exports.PolicyRule = require('./PolicyRuleFactory');
exports.UserFactor = require('./UserFactorFactory');
Loading