Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling property to disable the OpenID Connect logout #2996

Merged
merged 2 commits into from
Jun 10, 2020

Conversation

gbarbon
Copy link
Member

@gbarbon gbarbon commented Jun 4, 2020

Added a property to disable the OpenID Connect logout.

Related Issue
N/A

Description of the solution adopted
The OpenID Connect logout can be disabled by setting the console.sso.openid.logout.enabled property to false. This property is always true by default.
If the OpenID logout is disabled, the user is allowed to login again into the Kapua Console without the need to provide any credentials.

Screenshots
N/A

Any side note on the changes made
This feature is implemented directly inside the getSsoLogoutUri method of the GwtSettingsServiceImpl class. If the property is false, an empty string (URL) will be returned to the console on the browser side, and the call to the logout endpoint won't be performed. This simple approach has been preferred to the use of a dedicated callback, in order to avoid having too many nested callbacks.

Signed-off-by: Gianluca Barbon <gianluca.barbon@eurotech.com>
@gbarbon gbarbon marked this pull request as ready for review June 4, 2020 16:01
@Coduz Coduz added the Enhancement This PR/Issue improves an part of Kapua label Jun 10, 2020
Copy link
Contributor

@LeoNerdoG LeoNerdoG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @gbarbon, can you change the headers of the changed files?

@codecov
Copy link

codecov bot commented Jun 10, 2020

Codecov Report

Merging #2996 into develop will decrease coverage by 5.26%.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #2996      +/-   ##
=============================================
- Coverage      56.94%   51.68%   -5.27%     
+ Complexity      2598     2566      -32     
=============================================
  Files           1062     1062              
  Lines          22978    22978              
  Branches        2043     2043              
=============================================
- Hits           13085    11876    -1209     
- Misses          8928    10183    +1255     
+ Partials         965      919      -46     
Impacted Files Coverage Δ Complexity Δ
...c/main/java/org/eclipse/kapua/KapuaErrorCodes.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (-1.00%)
...va/org/eclipse/kapua/commons/util/SystemUtils.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (ø%)
...java/org/eclipse/kapua/MissingKapuaErrorCodes.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (-1.00%)
...clipse/kapua/commons/setting/SimpleSettingKey.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (ø%)
...rg/eclipse/kapua/message/xml/XmlAdaptedMetric.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (ø%)
...g/eclipse/kapua/message/xml/XmlAdaptedMetrics.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (ø%)
...pse/kapua/commons/util/KapuaCommonsErrorCodes.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (ø%)
.../kapua/commons/setting/KapuaSettingErrorCodes.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (ø%)
...ipse/kapua/kura/simulator/generator/Generator.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (ø%)
...mons/configuration/metatype/ObjectFactoryImpl.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (ø%)
... and 95 more

Signed-off-by: Gianluca Barbon <gianluca.barbon@eurotech.com>
@Coduz Coduz merged commit f8261e7 into eclipse:develop Jun 10, 2020
@gbarbon gbarbon deleted the feature-disableOpenIDLogout branch June 22, 2020 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement This PR/Issue improves an part of Kapua
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants