Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
reg-app
Regapp
Commits
a59410f7
Commit
a59410f7
authored
Nov 24, 2020
by
michael.simon
Browse files
use identity for attr resolv with oidc op
parent
73911358
Changes
1
Hide whitespace changes
Inline
Side-by-side
bwreg-service/src/main/java/edu/kit/scc/webreg/service/oidc/OidcOpLoginImpl.java
View file @
a59410f7
...
@@ -284,10 +284,10 @@ public class OidcOpLoginImpl implements OidcOpLogin {
...
@@ -284,10 +284,10 @@ public class OidcOpLoginImpl implements OidcOpLogin {
throw
new
OidcAuthenticationException
(
"unauthorized"
);
throw
new
OidcAuthenticationException
(
"unauthorized"
);
}
}
UserEntity
user
=
flowState
.
get
User
();
IdentityEntity
identity
=
flowState
.
get
Identity
();
if
(
user
==
null
)
{
if
(
identity
==
null
)
{
throw
new
OidcAuthenticationException
(
"No
user
attached to flow state."
);
throw
new
OidcAuthenticationException
(
"No
identity
attached to flow state."
);
}
}
RegistryEntity
registry
=
flowState
.
getRegistry
();
RegistryEntity
registry
=
flowState
.
getRegistry
();
...
@@ -323,7 +323,7 @@ public class OidcOpLoginImpl implements OidcOpLogin {
...
@@ -323,7 +323,7 @@ public class OidcOpLoginImpl implements OidcOpLogin {
Invocable
invocable
=
(
Invocable
)
engine
;
Invocable
invocable
=
(
Invocable
)
engine
;
invocable
.
invokeFunction
(
"buildTokenStatement"
,
scriptingEnv
,
claimsBuilder
,
user
,
registry
,
invocable
.
invokeFunction
(
"buildTokenStatement"
,
scriptingEnv
,
claimsBuilder
,
identity
,
registry
,
serviceOidcClient
.
getService
(),
logger
);
serviceOidcClient
.
getService
(),
logger
);
}
catch
(
NoSuchMethodException
|
ScriptException
e
)
{
}
catch
(
NoSuchMethodException
|
ScriptException
e
)
{
logger
.
warn
(
"Script execution failed. Continue with other scripts."
,
e
);
logger
.
warn
(
"Script execution failed. Continue with other scripts."
,
e
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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