Provides User Tokens for Access to ICES Web Services
Overview
Provides user tokens for ICES web services that require authentication and authorization. Web services covered by this package are ICES VMS database, the ICES DATSU web services, and the ICES SharePoint site https://www.ices.dk/data/tools/Pages/WebServices.aspx.
- tokens are now created by logging in at https://data.ices.dk/token, which uses two-factor authentication. Tokens can no longer be requested from R using a username and password, and can not be refreshed from R. This removes the token request code that caused the errors reported in #2 and addressed by #3.
- add function set_token() to store a token copied from https://data.ices.dk/token. A username is no longer needed, and set_username() now does nothing except print a message (#5).
- ices_token() now explains how to get a new token, and gives the expiry date when the stored token has expired.
- the token file is now only readable by the user.
- bugfix: decode_token() could fail on valid tokens, as the token payload is base64url encoded. decode_token() now warns and returns an empty list for tokens that can not be decoded.
Show all changes in 1.2.0Hide the rest of the changes in 1.2.0
- request functions now fail gracefully: if the request can not be made (for example, no internet connection), a message is given and NULL is returned. ices_get() and ices_post() also return NULL, rather than trying to parse the response, when the server returns an error status (#6).
- the messages for HTTP 401 and 403 responses now point to https://data.ices.dk/token.
- remove dependency on askpass
icesConnect 1.1.4 (2025-04-30)
- allow encoding to be set in ices_post()
icesConnect 1.1.3 (2025-04-03)
- remove dependency on askPass
icesConnect 1.1.1 (2025-04-03)
- convert to holding token in DCF file
icesConnect 1.0.0 (2022-02-09)
- Same as previous version.
icesConnect 0.0.0.9007 (2022-02-09)
- add JWT argument to allow no authentication requests
- add encoding to request functions
- add refresh argument to ices_token()
- export token decoding functions
- add function set_username()
- added function ices_get_jwt()
- initial commit with ices_token() and clear_token() functions
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 5
- Examples that run
- 0%4 never run
- Exported functions with examples
- 80%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- not measured
- Median days to close, 50 most recently updated closed issues
- 6
- Median days to close, 50 most recently updated closed PRs
- not measured
Forks over time
Issues over time
PRs over time
Commits over time
3 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/ices-tools-prod/icesconnect on 2026-10-22.
Dependencies
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 1.2.0Latest2026-10-20 · current release · diff ↗ ·
removed 3 exports
clear_token, clear_username, get_usernameadded 1 export
set_token - RR 4.6.0 released · 2026-04-24
- 1.1.4
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 1.0.02022-02-10
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2022-02-10
- Total releases
- 3 / 4 yrs
- License
- GPL-3 OSI
- Download size
- 8.9 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("icesConnect")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.