You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with the option "create-non-existing-users-in-l-d-a-p: false" no particular isue, the authen is OK
with option "create-non-existing-users-in-l-d-a-p: true", I have the following issue in logs:
ebSessionServerSecurityContextRepository : Found SecurityContext 'SecurityContextImpl [Authentication=OAuth2AuthenticationToken [Principal=Name: [127], Granted Authorities: [[ROLE_USER]], User Attributes: [
{
id=127,
email=..@..,
first_name=...,
company=autre,
last_name=...
details={
ab_testing_lot1=[..., ...],
ab_testing_lot3=[..., ...],
allowed_parcels=false,
variables=[..., ...],
onBoardingFinished=true,
mocked=false
},
bookmarks={
variables=[..., ...],
favorites=[],
reference={
uuid=0147a99a...6f7804,
type=waterbody
}
},
is_admin=false,
created_at=2024-08-13T11:55:43.000000Z,
activated_at=2024-08-13 14:00:00,
is_producer=true,
email_verified_at=2024-08-13T11:56:01.000000Z
}
], Credentials=[PROTECTED], Authenticated=true, Details=null, Granted Authorities=[ROLE_USER]]]' in WebSession: 'org.springframework.web.server.session.InMemoryWebSessionStore$InMemoryWebSession@72a3475f'
org.georchestra.gateway.security.oauth2 : Mapping DefaultOAuth2User authentication token from provider cas-oauth2
o.g.g.s.RolesMappingsUserCustomizer : Computed additional roles for ROLE_USER: []
o.s.ldap.core.LdapTemplate : The returnObjFlag of supplied SearchControls is not set but a ContextMapper is used - setting flag to true
o.s.l.c.support.AbstractContextSource : Got Ldap context on server 'ldap://ldap:389/dc=georchestra,dc=org'
o.s.l.c.support.AbstractContextSource : Got Ldap context on server 'ldap://ldap:389/dc=georchestra,dc=org'
o.s.ldap.core.LdapTemplate : The returnObjFlag of supplied SearchControls is not set but a ContextMapper is used - setting flag to true
o.s.l.c.support.AbstractContextSource : Got Ldap context on server 'ldap://ldap:389/dc=georchestra,dc=org'
o.s.l.c.support.AbstractContextSource : Got Ldap context on server 'ldap://ldap:389/dc=georchestra,dc=org'
a.w.r.e.AbstractErrorWebExceptionHandler : [ffe8807e-7] Resolved [NullPointerException: Cannot invoke "String.length()" because the return value of "org.georchestra.ds.users.Account.getGivenName()" is null] for HTTP GET /whoami
a.w.r.e.AbstractErrorWebExceptionHandler : [ffe8807e-7] 500 Server Error for HTTP GET "/whoami"
java.lang.NullPointerException: Cannot invoke "String.length()" because the return value of "org.georchestra.ds.users.Account.getGivenName()" is null
at org.georchestra.ds.users.AccountDaoImpl.checkMandatoryFields(AccountDaoImpl.java:400) ~[georchestra-ldap-account-management-24.0.0.jar:na]
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Have you an idea why org.georchestra.ds.users.Account.getGivenName() is crashing ? is it missing an id_token in the auth token ? or some other attributes in access_token ?
I also tried to add various sprint > security > oidc config but without any success
Hello,
I have an issue when I to automatically create an user with oauth2 connection.
I used the georchestra 24.0 with docker (and the gateway module version 1.1.0)
this is my security.yml file :
the https://sso_fqdn/api/oauth/token give me the following bearer access token :
the decoded access_token looks like :
the user-info-uri end point looks like :
with the option "create-non-existing-users-in-l-d-a-p: false" no particular isue, the authen is OK
with option "create-non-existing-users-in-l-d-a-p: true", I have the following issue in logs:
Have you an idea why org.georchestra.ds.users.Account.getGivenName() is crashing ? is it missing an id_token in the auth token ? or some other attributes in access_token ?
I also tried to add various sprint > security > oidc config but without any success
The text was updated successfully, but these errors were encountered: