Skip to content

Commit

Permalink
Add keycloak token (#61)
Browse files Browse the repository at this point in the history
* chore: add keycloak access token to interface

* chore: bump version

* fix: use type instead of individual strings

* fix: typo in doc comment

* chore: bump minor version
  • Loading branch information
abhijeetnarvekar authored Feb 20, 2024
1 parent dfd2fb9 commit ea2b5f8
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@acrolinx/sidebar-interface",
"description": "The interface of the Acrolinx Sidebar",
"version": "15.3.1",
"version": "15.4.0",
"license": "Apache-2.0",
"author": "Acrolinx",
"url": "https://www.acrolinx.com",
Expand Down
20 changes: 20 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,26 @@ export interface InitParameters extends SidebarConfiguration {
* New since sidebar version 14.11.0.
*/
accessToken?: string;

/**
* KeyCloak tokens used used by sidebar to authenticate in Acrolinx One
* Available: Acrolinx One Cloud
*/
keyCloakTokens?: KeyCloakTokens;
}

export interface KeyCloakTokens {
/**
* The sidebar uses this optional KeyCloak access token to sign in to Acrolinx One.
* Available in Acrolinx One Cloud
*/
keyCloakAccessToken: string;

/**
* The sidebar uses this optional KeyCloak refresh token to fetch new access token.
* Available in Acrolinx One Cloud
*/
keyCloakRefreshToken: string;
}

export type UiMode = 'default' | 'noOptions';
Expand Down

0 comments on commit ea2b5f8

Please sign in to comment.