Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pull request #100: Add auth to ActionCable
Merge in COSMOSEE/base from cable-subscription-auth to master * commit '5299f1b0868192eec741511cbaac1391613a59d5': Fix typo Add defaultMinValidity property to CosmosAuth Fix adding items to subscription Refactor and add tokens to ActionCable connections
- Loading branch information
Showing
12 changed files
with
254 additions
and
181 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
cosmos-frontend-init/cosmosc2-tool-base/public/js/authConstants.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
# Copyright 2021 Ball Aerospace & Technologies Corp. | ||
# All Rights Reserved. | ||
# | ||
# This program is free software; you can modify and/or redistribute it | ||
# under the terms of the GNU Affero General Public License | ||
# as published by the Free Software Foundation; version 3 with | ||
# attribution addendums as found in the LICENSE.txt | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Affero General Public License for more details. | ||
# | ||
# This program may also be used under the terms of a commercial or | ||
# enterprise edition license of COSMOS if purchased from the | ||
# copyright holder | ||
*/ | ||
|
||
// This is typically used with the CosmosAuth.updateToken method. | ||
// Passing a value of 30 to this method means that the access token | ||
// will be updated if it is currently expired or if it will expire | ||
// within the next 30 seconds. | ||
Object.defineProperty(CosmosAuth, 'defaultMinValidity', { | ||
value: 30, | ||
writable: false, | ||
enumerable: true, | ||
configurable: false, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.