Skip to content

Conversation

@felixerdy
Copy link
Member

Authentication

Authentication via access_token. Further information here: https://en.docs.sensebox.de/opensensemap/opensensemap-security/

Description

Motivation and Context

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code has been linted using yarn run lint.
  • My code does not break the tests (yarn run test)
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.

@felixerdy felixerdy merged commit bb7d5e3 into development Oct 22, 2020
felixerdy added a commit that referenced this pull request Oct 22, 2020
* fix download in getData closes #325 (#349)

* Bump simple-statistics from 7.2.0 to 7.3.0 (#352)

Bumps [simple-statistics](https://github.com/simple-statistics/simple-statistics) from 7.2.0 to 7.3.0.
- [Release notes](https://github.com/simple-statistics/simple-statistics/releases)
- [Changelog](https://github.com/simple-statistics/simple-statistics/blob/master/CHANGELOG.md)
- [Commits](simple-statistics/simple-statistics@v7.2.0...v7.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* [Security] Bump bl from 1.2.2 to 1.2.3 (#353)

Bumps [bl](https://github.com/rvagg/bl) from 1.2.2 to 1.2.3. **This update includes a security fix.**
- [Release notes](https://github.com/rvagg/bl/releases)
- [Commits](rvagg/bl@v1.2.2...v1.2.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump got from 11.6.0 to 11.6.2 (#354)

Bumps [got](https://github.com/sindresorhus/got) from 11.6.0 to 11.6.2.
- [Release notes](https://github.com/sindresorhus/got/releases)
- [Commits](sindresorhus/got@v11.6.0...v11.6.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump moment from 2.27.0 to 2.28.0 (#355)

Bumps [moment](https://github.com/moment/moment) from 2.27.0 to 2.28.0.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](moment/moment@2.27.0...2.28.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump got from 11.6.2 to 11.7.0 (#356)

Bumps [got](https://github.com/sindresorhus/got) from 11.6.2 to 11.7.0.
- [Release notes](https://github.com/sindresorhus/got/releases)
- [Commits](sindresorhus/got@v11.6.2...v11.7.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump moment from 2.28.0 to 2.29.0 (#357)

Bumps [moment](https://github.com/moment/moment) from 2.28.0 to 2.29.0.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](moment/moment@2.28.0...2.29.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump config from 3.3.1 to 3.3.2 (#358)

Bumps [config](https://github.com/lorenwest/node-config) from 3.3.1 to 3.3.2.
- [Release notes](https://github.com/lorenwest/node-config/releases)
- [Changelog](https://github.com/lorenwest/node-config/blob/master/History.md)
- [Commits](https://github.com/lorenwest/node-config/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump moment from 2.29.0 to 2.29.1 (#359)

Bumps [moment](https://github.com/moment/moment) from 2.29.0 to 2.29.1.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](moment/moment@2.29.0...2.29.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Auth (#362)

* fix download in getData closes #325 (#349) (#350)

* initial auth for boxes

* auth for boxes that have not opt out

* fix spelling

* useAuth in updateBox

* update access_token via generate_access_token

* pass access_token to sketch templater

* bump node-sketch-templater version (beta)

* add authorization header anyways

* auth beta

* include useAuth in includeSecret requests

* remove default true for useAuth, set true for new Boxes

* update tests for auth feature, fix errors in auth code

* add access_token to getSketch of newSketch email

* update documentation 📜

* remove custom boxes from useAuth=true

* add onlyValue in measurement controller

* test for onlyValue feature

* remove console.log

Co-authored-by: Umut Tas <u.tas@reedu.de>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Umut Tas <u.tas@reedu.de>
felixerdy added a commit that referenced this pull request Oct 29, 2020
* fix download in getData closes #325 (#349) (#350)

* v9.6.0 Authentication (#363)

* fix download in getData closes #325 (#349)

* Bump simple-statistics from 7.2.0 to 7.3.0 (#352)

Bumps [simple-statistics](https://github.com/simple-statistics/simple-statistics) from 7.2.0 to 7.3.0.
- [Release notes](https://github.com/simple-statistics/simple-statistics/releases)
- [Changelog](https://github.com/simple-statistics/simple-statistics/blob/master/CHANGELOG.md)
- [Commits](simple-statistics/simple-statistics@v7.2.0...v7.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* [Security] Bump bl from 1.2.2 to 1.2.3 (#353)

Bumps [bl](https://github.com/rvagg/bl) from 1.2.2 to 1.2.3. **This update includes a security fix.**
- [Release notes](https://github.com/rvagg/bl/releases)
- [Commits](rvagg/bl@v1.2.2...v1.2.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump got from 11.6.0 to 11.6.2 (#354)

Bumps [got](https://github.com/sindresorhus/got) from 11.6.0 to 11.6.2.
- [Release notes](https://github.com/sindresorhus/got/releases)
- [Commits](sindresorhus/got@v11.6.0...v11.6.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump moment from 2.27.0 to 2.28.0 (#355)

Bumps [moment](https://github.com/moment/moment) from 2.27.0 to 2.28.0.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](moment/moment@2.27.0...2.28.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump got from 11.6.2 to 11.7.0 (#356)

Bumps [got](https://github.com/sindresorhus/got) from 11.6.2 to 11.7.0.
- [Release notes](https://github.com/sindresorhus/got/releases)
- [Commits](sindresorhus/got@v11.6.2...v11.7.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump moment from 2.28.0 to 2.29.0 (#357)

Bumps [moment](https://github.com/moment/moment) from 2.28.0 to 2.29.0.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](moment/moment@2.28.0...2.29.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump config from 3.3.1 to 3.3.2 (#358)

Bumps [config](https://github.com/lorenwest/node-config) from 3.3.1 to 3.3.2.
- [Release notes](https://github.com/lorenwest/node-config/releases)
- [Changelog](https://github.com/lorenwest/node-config/blob/master/History.md)
- [Commits](https://github.com/lorenwest/node-config/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump moment from 2.29.0 to 2.29.1 (#359)

Bumps [moment](https://github.com/moment/moment) from 2.29.0 to 2.29.1.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](moment/moment@2.29.0...2.29.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Auth (#362)

* fix download in getData closes #325 (#349) (#350)

* initial auth for boxes

* auth for boxes that have not opt out

* fix spelling

* useAuth in updateBox

* update access_token via generate_access_token

* pass access_token to sketch templater

* bump node-sketch-templater version (beta)

* add authorization header anyways

* auth beta

* include useAuth in includeSecret requests

* remove default true for useAuth, set true for new Boxes

* update tests for auth feature, fix errors in auth code

* add access_token to getSketch of newSketch email

* update documentation 📜

* remove custom boxes from useAuth=true

* add onlyValue in measurement controller

* test for onlyValue feature

* remove console.log

Co-authored-by: Umut Tas <u.tas@reedu.de>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Umut Tas <u.tas@reedu.de>

* add co2 sensor

* add co2 sensor

* rename CO2 to CO₂

* update api models (beta)

* bump node-sketch-templater beta

* update api models (beta)

* bump api-models version

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Umut Tas <u.tas@reedu.de>
@mpfeil mpfeil deleted the auth branch January 3, 2023 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants