Difference between revisions of "Porting Applications To Smartgears 4"
From Gcube Wiki
Lucio.lelii (Talk | contribs) |
Lucio.lelii (Talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
* SecurityTokenProvider | * SecurityTokenProvider | ||
* ScopeProvider | * ScopeProvider | ||
+ | * AuthorizationProvider | ||
* ScopeBean | * ScopeBean | ||
− | + | ScopeBean has been replaced by Contextbean, only the name is changed; | |
+ | SecurityTokenProvider, ScopeProvider and AuthorizationEntryProvider have been replaced by SecretManagerProvider that contains all the informations of the user and the context. | ||
= How to get Secret for specific context in a gCube Service = | = How to get Secret for specific context in a gCube Service = | ||
− | |||
''ContextProvider.get().container().configuration().authorizationProvider().getSecretForContext(context);'' | ''ContextProvider.get().container().configuration().authorizationProvider().getSecretForContext(context);'' |
Latest revision as of 16:46, 4 January 2023
How to move from Smartgears 3 to Smartgears 4
The gCube security system has changed and a lot of classes have been removed or changed:
- SecurityTokenProvider
- ScopeProvider
- AuthorizationProvider
- ScopeBean
ScopeBean has been replaced by Contextbean, only the name is changed; SecurityTokenProvider, ScopeProvider and AuthorizationEntryProvider have been replaced by SecretManagerProvider that contains all the informations of the user and the context.
How to get Secret for specific context in a gCube Service
ContextProvider.get().container().configuration().authorizationProvider().getSecretForContext(context);