Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
reg-app
Regapp
Commits
8f1ab0fe
Commit
8f1ab0fe
authored
May 04, 2021
by
michael.simon
Browse files
don't throw not authorized exception
parent
c2fb82ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
bwreg-webapp/src/main/java/edu/kit/scc/webreg/bean/idpadmn/IdpAdminIndexBean.java
View file @
8f1ab0fe
...
...
@@ -18,10 +18,10 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
import
javax.inject.Named
;
import
javax.faces.view.ViewScoped
;
import
javax.faces.event.ComponentSystemEvent
;
import
javax.faces.view.ViewScoped
;
import
javax.inject.Inject
;
import
javax.inject.Named
;
import
org.apache.commons.codec.binary.Base64
;
import
org.opensaml.saml.saml2.metadata.EntityDescriptor
;
...
...
@@ -38,7 +38,6 @@ import edu.kit.scc.webreg.entity.SamlUserEntity;
import
edu.kit.scc.webreg.entity.UserEntity
;
import
edu.kit.scc.webreg.entity.UserRoleEntity
;
import
edu.kit.scc.webreg.entity.identity.IdentityEntity
;
import
edu.kit.scc.webreg.exc.NotAuthorizedException
;
import
edu.kit.scc.webreg.service.RoleService
;
import
edu.kit.scc.webreg.service.SamlIdpMetadataService
;
import
edu.kit.scc.webreg.service.UserService
;
...
...
@@ -85,10 +84,6 @@ public class IdpAdminIndexBean implements Serializable {
private
Map
<
KeyDescriptor
,
List
<
java
.
security
.
cert
.
X509Certificate
>>
certMap
;
public
void
preRenderView
(
ComponentSystemEvent
ev
)
{
if
(
getIdpList
().
size
()
==
0
)
{
throw
new
NotAuthorizedException
(
"Not authorized"
);
}
if
(
selectedIdp
==
null
&&
getIdpList
().
size
()
>
0
)
{
selectedIdp
=
getIdpList
().
get
(
0
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment