You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+30-10Lines changed: 30 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
7
7
## [Unreleased]
8
8
9
+
## [2.0.0] - 2021-07-06
10
+
11
+
### Added
12
+
13
+
- Added events to `Connection` to populate changes for Auth Tokens (`tokenChanged`) and Auth Providers (`authProviderChanged`).
14
+
- Added new methods to `Connection` for working with events: `on`, `off` and `emit`.
15
+
16
+
### Changed
17
+
18
+
- OpenID Connect authentication has been rewritten.
19
+
- Default grant type for OpenID Connect is "AuthCode w/ PKCE" instead of "Implicit".
20
+
- Support for OpenID Connect session renewal via refresh tokens.
21
+
- Updated STAC support to STAC v1.0.0.
22
+
23
+
### Removed
24
+
25
+
-`OidcProvider`: Methods `getGrant`, `getScopes`, `getIssuer` and `getUser` removed. Use the properties `grant`, `scopes`, `issuer` and `user` instead.
26
+
- Removed deprecated method `getResultsAsItem` in favor of `getResultsAsStac`.
27
+
9
28
## [1.3.2] - 2021-05-27
10
29
11
30
### Fixed
@@ -86,13 +105,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
86
105
87
106
All prior releases have been documented in the [GitHub Releases](https://github.com/Open-EO/openeo-js-client/releases).
<scriptsrc="https://cdn.jsdelivr.net/npm/oidc-client@1/dist/oidc-client.min.js"></script> <!-- Only required if you'd like to enable authentication via OpenID Connect -->
constBACKEND="https://example.openeo.org";// TODO: Set the back-end to authenticate against
13
13
constCLIENT_ID="";// TODO: Set the client id
14
-
constREDIRECT_URI="http://localhost/openid-connect-popup.html?signin";// TODO: Set the redirect URI, should include ?signin - doesn't work with file://
15
-
14
+
OidcProvider.redirectUrl="http://localhost/openid-connect-popup.html?signin";// TODO: Set the redirect URI, should include ?signin - doesn't work with file://
16
15
// Set the UI method, here we open a popup
17
-
OidcProvider.setUiMethod("popup");
16
+
OidcProvider.uiMethod="popup";
18
17
19
18
varcon;
20
19
asyncfunctionrun(){
@@ -59,9 +58,12 @@
59
58
varproviders=awaitcon.listAuthProviders();
60
59
varprovider=providers.find(p=>p.getId()===id);
61
60
61
+
// Set the client ID
62
+
provider.setClientId(CLIENT_ID);
63
+
62
64
// Start the login procedure (opens a popup as configured above)
63
65
// Then waits for the popup to be closed
64
-
awaitprovider.login(CLIENT_ID,REDIRECT_URI);
66
+
awaitprovider.login();
65
67
66
68
// After the popup is closed, check whether the user is now authenticated
0 commit comments