Skip to content

REALMC-5717: Allow creating temp api keys #414

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

Merged
merged 7 commits into from
May 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions contrib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,41 @@ The general publishing flow can be followed using `minor` as the bump type in `b
## Major Versions

The general publishing flow can be followed using `major` as the bump type in `bump_version`. In addition to this, the release on GitHub should be edited for a more readable format of key changes and include any migration steps needed to go from the last major version to this one.

## Local Development

If you are making changes to the sdk and you want to test your new changes on `baas-ui` without the need to make a new release, we recommend using `yalc`. You can find more about it [here](https://www.npmjs.com/package/yalc).

Install with

```shell
yarn global add yalc
```

### Publishing locally

From the shell you can publish to your local repository created by yalc like so

```shell
yalc publish
```

you will be prompted with something similar to this

```shell
mongodb-stitch@3.15.0-6490a8da published in store.
```

Now you can go to `baas-ui`, the first time you have to run

```shell
yalc add mongodb-stitch
```

then every time you publish a new version you have to run

```shell
yalc update mongodb-stitch && yarn
```

to update your `mongodb-stitch` dependency.
19 changes: 19 additions & 0 deletions dist/node/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -908,6 +908,25 @@ var StitchAdminClient = exports.StitchAdminClient = function (_StitchClient) {
}
};
}

/**
* Manages Atlas temporary API keys.
*
* @returns {Object}
*/

}, {
key: 'privateTempAPIKeys',
value: function privateTempAPIKeys() {
var privateApi = this._v1[_constants.API_TYPE_PRIVATE];
var baseUrl = '/auth/temp_api_keys';

return {
create: function create(desc) {
return privateApi._post(baseUrl, JSON.stringify({ desc: desc }));
}
};
}
}, {
key: 'type',
get: function get() {
Expand Down
174 changes: 110 additions & 64 deletions dist/web/stitch.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/web/stitch.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/web/stitch.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/web/stitch.min.js.map

Large diffs are not rendered by default.

Loading