[FEATURE] Add signal to re-use access token retrieved on login #49
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a signal to the AuthenticationService which is dispatched when a user is retrieved from the OID server (e.g. a user login was successful). Signal parameter is the user data.
The user data is previously extended with the access token issued by the OID server so it can by used by a signal slot for further actions.
Fixes #48
Use case:
Some OID servers allow further API calls using the issued token to retrieve additional data besides /userinfo. E.g. Cyclos allows to retrieve the users account status & history, it is useful (and important to us) to show this data in a Typo page.
Thanks in advance for including this in one of the next releases!