albogdano on master
readme (compare)
albogdano on master
Update README.md to include "ta… Merge pull request #320 from rb… (compare)
[[1;34mINFO[m] Scanning for projects...
[[1;31mERROR[m] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Child module /home/alex/secretescapes/questions/para/para-server of /home/alex/secretescapes/questions/para/pom.xml does not exist @
[ERROR] Child module /home/alex/secretescapes/questions/para/para-core of /home/alex/secretescapes/questions/para/pom.xml does not exist @
[ERROR] Child module /home/alex/secretescapes/questions/para/para-client of /home/alex/secretescapes/questions/para/pom.xml does not exist @
[ERROR] Child module /home/alex/secretescapes/questions/para/para-war of /home/alex/secretescapes/questions/para/pom.xml does not exist @
[ERROR] Child module /home/alex/secretescapes/questions/para/para-jar of /home/alex/secretescapes/questions/para/pom.xml does not exist @
@
[[1;31mERROR[m] The build could not read 1 project -> [1m[Help 1][m
[[1;31mERROR[m]
[[1;31mERROR[m] The project com.erudika:para-parent:1.42.1-SNAPSHOT (/home/alex/secretescapes/questions/para/pom.xml) has 5 errors
[[1;31mERROR[m] Child module /home/alex/secretescapes/questions/para/para-server of /home/alex/secretescapes/questions/para/pom.xml does not exist
[[1;31mERROR[m] Child module /home/alex/secretescapes/questions/para/para-core of /home/alex/secretescapes/questions/para/pom.xml does not exist
[[1;31mERROR[m] Child module /home/alex/secretescapes/questions/para/para-client of /home/alex/secretescapes/questions/para/pom.xml does not exist
[[1;31mERROR[m] Child module /home/alex/secretescapes/questions/para/para-war of /home/alex/secretescapes/questions/para/pom.xml does not exist
[[1;31mERROR[m] Child module /home/alex/secretescapes/questions/para/para-jar of /home/alex/secretescapes/questions/para/pom.xml does not exist
[[1;31mERROR[m]
[[1;31mERROR[m] To see the full stack trace of the errors, re-run Maven with the [1m-e[m switch.
[[1;31mERROR[m] Re-run Maven using the [1m-X[m switch to enable full debug logging.
[[1;31mERROR[m]
[[1;31mERROR[m] For more information about the errors and possible solutions, please read the following articles:
[[1;31mERROR[m] [1m[Help 1][m http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
Is it possible to set the default space for new users to "All spaces" instead of "Default space"?
For config:
para.auto_assign_spaces = "ScopeA,ScopeB"
New users are assigned to the above spaces, as well as the "Default space" which is set as the default.
I noticed that many new users do not notice the spaces and leave Scoold thinking that there are no interesting topics there.
Setting default to "All spaces" wuold help them to explore more after first signin.
@albogdano Awesome! :thumbsup:
I'm wondering how to make the Spaces button more obvious.
I asked a few users and they said that at first they thought of it as a separator between the application menu and the user menu.
Maybe enlarging it to the size of the adjacent user menu would make the button more noticeable.
If I come up with something I'll share.
Until then I'll just pin a question with a brief description of Scoold's basic functions, that should help.
para.security.oauth.admins_equivalent_claim_value
will add admin rights after signin.
1.48.1: Pulling from scoold-pro
97518928ae5f: Already exists
170a48b9dc73: Already exists
5de6f17ec67d: Already exists
7a15738aa7d2: Pulling fs layer
17e6d4d1b69e: Verifying Checksum
filesystem layer verification failed for digest sha256:17e6d4d1b69e5e43e1cd761918a7f56b5e74ea43b19fb0437fa95f021a3fdf71
Still no success with oauth.groups
.
I changed the configuration like this:
para.security.oauth.groups_attribute_name = "/attributes/MemberOf"
para.security.oauth.admins_equivalent_claim_value = ".*?USER_SCOOLD.*"
para.security.oauth.users_equivalent_claim_value = ".*?USER_xxx_SCOOLD.*"
Signed in multiple times as user which in /attributes/MemberOf
array has:"CN=USER_SCOOLD,CN=SCOOLD,CN=Groups,O=COMPANY"
As a result, I was able to access Scoold at the user level every time.
The expected result is a sign in error due to missing .*?USER_xxx_SCOOLD.*
, but it never occured.
Alternatively, administrator privileges should be granted, but they were not.
Since nothing happens I suspect the problem is in para.security.oauth.groups_attribute_name = "/attributes/MemberOf"
.
Which logs can I switch to trace whats going on with OIDC auth process in Scoold?
With default levels there is nothing in logs about signing in.
The only lines in Para's log worth noting are:
2022-02-10 12:45:23 [WARN ] null
com.nimbusds.jose.KeyLengthException: The secret length must be at least 256 bits
at com.nimbusds.jose.crypto.impl.MACProvider.<init>(MACProvider.java:118)
at com.nimbusds.jose.crypto.MACVerifier.<init>(MACVerifier.java:168)
at com.nimbusds.jose.crypto.MACVerifier.<init>(MACVerifier.java:81)
at com.nimbusds.jose.crypto.MACVerifier.<init>(MACVerifier.java:97)
at com.erudika.para.server.security.SecurityUtils.isValidJWToken(SecurityUtils.java:225)
at com.erudika.para.server.security.filters.PasswordlessAuthFilter.getOrCreateUser(PasswordlessAuthFilter.java:115)
at com.erudika.para.server.security.JWTRestfulAuthFilter.getOrCreateUser(JWTRestfulAuthFilter.java:313)
...
2022-02-10 12:45:23 [TRACE] Invoking JWTRestfulAuthFilter (22/28)
2022-02-10 12:45:23 [DEBUG] Checking match of request : '/v1/_id/6202552ce54b5b05c40cf670:profile'; against '^/v\d[\.\d]*/.*'
2022-02-10 12:45:23 [TRACE] Invoking RestAuthFilter (23/28)
2022-02-10 12:45:23 [DEBUG] Checking match of request : '/v1/_id/6202552ce54b5b05c40cf670:profile'; against '^/v\d[\.\d]*/.*'
2022-02-10 12:45:23 [TRACE] Invoking RememberMeAuthenticationFilter (24/28)
2022-02-10 12:45:23 [DEBUG] SecurityContextHolder not populated with remember-me token, as it already contained: 'com.erudika.para.server.security.AppAuthentication@149545c2'
I can prowide full stacktrace if it would help.
{
"sub": "username",
"auth_time": 1531571734,
"attributes": {
"Office": "Full office name",
"CN": "User Name",
"credentialType": "Type",
"DisplayName": "User Name (Office)",
"DN": "uid=username,CN=Users,O=COMPANY",
"Email": "username@company.com",
"FN": "Firstname",
"MemberOf": [
"CN=UX_some_role,CN=UXUSER,CN=UX,CN=Groups,O=COMPANY",
"CN=confluence-users,CN=CF_PROD,CN=CF,CN=Groups,O=COMPANY",
"CN=wiki_space_pcpzu_edytor,CN=CF_PROD,CN=CF,CN=Groups,O=COMPANY",
"CN=USER_xxx_SCOOLD,CN=SCOOLD,CN=Groups,O=COMPANY",
"CN=OTHER_SUPERUSER,CN=OTHER,CN=OS,CN=Groups,O=COMPANY"
],
"Name": "username",
"LN": "Lastname",
"UID": "username"
},
"id": "username"
}
MemberOf
object contains both the admins role USER_SCOOLD
and USER_xxx_SCOOLD
then you will be given the admin rights and you will be able to sign in