-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- The token which is generated for the third party app is now cached
- within the cache the token itself, a counter and the name of the third party app is stored+ - the upload and download to/from the ELN by the third party app is limited by the counter
- Loading branch information
1 parent
39d2824
commit 236f34a
Showing
5 changed files
with
73 additions
and
52 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
# frozen_string_literal: true | ||
|
||
class CachedTokenThirdPartyApp | ||
attr_accessor :token, :counter | ||
attr_accessor :token, :counter, :name_tpa | ||
|
||
def initialize(token, counter) | ||
def initialize(token, counter, name_tpa) | ||
@token = token | ||
@counter = counter | ||
@name_tpa = name_tpa | ||
end | ||
end | ||
end |
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