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

Merge to master - Release 2.4.4 #81

Merged
merged 205 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
205 commits
Select commit Hold shift + click to select a range
cc075e2
add request language to @context
haddadzineddine Feb 16, 2023
e9b708c
add subscribed attribute to the user model (#68)
haddadzineddine Feb 16, 2023
8d6ec5e
change name ( language -> lang )
haddadzineddine Feb 17, 2023
b1f1286
add @language to @context
haddadzineddine Feb 17, 2023
e8704a8
in tests no more use the reload argument in the exist? method
syphax-bouazzouni Mar 4, 2023
45c16f6
rename the INRAETHES test file name
syphax-bouazzouni Mar 4, 2023
c2f2889
fix mappings test test_external_mapping_with_no_source_ids validity
syphax-bouazzouni Mar 4, 2023
c5919e4
handle users with no username to_string
syphax-bouazzouni Mar 4, 2023
428edfb
add requested language tests
syphax-bouazzouni Mar 4, 2023
043afa9
use for Goo the language filter feature branch
syphax-bouazzouni Mar 4, 2023
7514480
add request_store gem
syphax-bouazzouni Mar 4, 2023
f8c8f56
update requested language tests to use RequestStore gem
syphax-bouazzouni Mar 4, 2023
69756f8
Merge pull request #71 from ontoportal-lirmm/feature/support-multilin…
syphax-bouazzouni Mar 6, 2023
3454f5c
Merge branch 'master' into development
syphax-bouazzouni Mar 7, 2023
4609ce3
Merge remote-tracking branch 'origin/development' into development
syphax-bouazzouni Mar 7, 2023
366f696
migrate submission attributes metadata to a yaml scheme file
syphax-bouazzouni Mar 7, 2023
927e9cd
migrate submission types enforce to the type section
syphax-bouazzouni Mar 7, 2023
5b0461c
update ontology submission types and validators
syphax-bouazzouni Mar 8, 2023
feb8631
add metadata information to some attributes of ontology submission
syphax-bouazzouni Mar 8, 2023
525b7d7
fix a typo in ontology submission curatedOn attribute validator
syphax-bouazzouni Mar 8, 2023
fb23140
reading language value from request query parameter called 'language'
haddadzineddine Mar 10, 2023
759b032
Merge branch 'development' into feature/add-request-language-to-context
haddadzineddine Mar 10, 2023
c98181d
update the metadata extractor to handle the new goo validators
syphax-bouazzouni Mar 14, 2023
a6be2d1
fix tests to handle the new ontology submission validators
syphax-bouazzouni Mar 14, 2023
96980a4
force averageChildCount metrics to be a float
syphax-bouazzouni Mar 14, 2023
fb608fc
remove the ontology_submission creationDate attribute default value
syphax-bouazzouni Mar 14, 2023
b7882b5
disable extractedMeta the keyClasses and exampleIdentifier attributes
syphax-bouazzouni Mar 15, 2023
ee11b66
remove unique validator fro the URI attribute
syphax-bouazzouni Mar 15, 2023
1055e41
make exampleIdentifier default the first class of the ontology
syphax-bouazzouni Mar 15, 2023
6cd7380
add enforce_symmetric_ontologies proc validator test
syphax-bouazzouni Mar 16, 2023
3bf80d7
implment enforce_symmetric_ontologies proc validator
syphax-bouazzouni Mar 16, 2023
15bf781
use enforce_symmetric_ontologies proc validator for som submission attrs
syphax-bouazzouni Mar 16, 2023
84171b8
move ontology_submission_validators tests to a seperate file
syphax-bouazzouni Mar 16, 2023
218c17e
add status_align_callbacks tests
syphax-bouazzouni Mar 16, 2023
60620e9
implement submission status align callbacks
syphax-bouazzouni Mar 16, 2023
1fdcf91
add the new two status onUpdate callback to the submission attribute
syphax-bouazzouni Mar 16, 2023
3c33494
remove the old enforce_symmetric_ontologies from the submission tests
syphax-bouazzouni Mar 16, 2023
ad41744
implement submission retired validators and callback
syphax-bouazzouni Mar 16, 2023
13ad051
use submission retired validators and callbacks
syphax-bouazzouni Mar 16, 2023
187362b
add submission retired status validators and callbacks tests
syphax-bouazzouni Mar 16, 2023
75e16ec
add submission modification_date_previous_align validator test
syphax-bouazzouni Mar 16, 2023
4b1ccea
implement modification_date_previous_align validator
syphax-bouazzouni Mar 16, 2023
b932edc
refactor validators module to extract the callback module
syphax-bouazzouni Mar 16, 2023
8599476
add submission test_has_prior_version_callback
syphax-bouazzouni Mar 16, 2023
d3b8daa
implement and use include_previous_submission onUpdate callback
syphax-bouazzouni Mar 16, 2023
555c01b
add ontology update_submissions_has_part test
syphax-bouazzouni Mar 16, 2023
09d2239
implement and use ontology update_submissions_has_part callback
syphax-bouazzouni Mar 16, 2023
ee3eb03
implement and use submission include_ontology_views validator
syphax-bouazzouni Mar 16, 2023
0d17cfd
Update ontology_submission.yml
hibadjebabria169 Mar 16, 2023
c0bf105
Update Gemfile.luck to get the new version of Goo
syphax-bouazzouni Mar 17, 2023
cc31ab0
fix some syntax issue the ontology_submission.yml file
syphax-bouazzouni Mar 17, 2023
012031e
Merge pull request #73 from ontoportal-lirmm/feature/add-request-lang…
syphax-bouazzouni Mar 17, 2023
100798b
add submission inverse ontology properties callbacks tests
syphax-bouazzouni Mar 17, 2023
70d1c21
implement and use ontology_inverse_of callback for useImports and usedBy
syphax-bouazzouni Mar 17, 2023
556ab81
Update ontology_submission.yml
hibadjebabria169 Mar 17, 2023
6f59790
refactor and reorder submission attributes and group them by category
syphax-bouazzouni Mar 19, 2023
468ea2b
disable metadata extraction for hasOntologyLanguage attribute
syphax-bouazzouni Mar 19, 2023
8d9fd29
update Gemfile.lock to get the latest version of Goo
syphax-bouazzouni Mar 19, 2023
d8f89d0
fix syntax issues in the ontology_submission.yml file
syphax-bouazzouni Mar 19, 2023
ecd70f9
enable submission creationDate automatic extraction
syphax-bouazzouni Mar 19, 2023
b0b5638
implement and use lexvo_language validator
syphax-bouazzouni Mar 19, 2023
f1bc801
add submission lexvo_language_validator test
syphax-bouazzouni Mar 19, 2023
9aadc69
remove no more needed concatenate, textarea and isOntology attributes…
syphax-bouazzouni Mar 19, 2023
1b3fb68
remove submission metrics attributes and move them to the metrics model
syphax-bouazzouni Mar 19, 2023
9101dfc
set the default values callbacks to submissions attributes
syphax-bouazzouni Mar 19, 2023
6c0b4b8
don't show request language if @context is not enabled
syphax-bouazzouni Mar 20, 2023
7ea948c
Merge branch 'feature/add-request-language-to-context' into development
syphax-bouazzouni Mar 20, 2023
18c1daa
Merge branch 'development' into feature/migrate-attrbiutes-metadata-t…
syphax-bouazzouni Mar 20, 2023
f619cc8
Accrual periodicity values
hibadjebabria169 Mar 20, 2023
f227166
IncludedInDataCatalog : enforcedValues
hibadjebabria169 Mar 20, 2023
1e6886b
apply for some submission attributes ontologies_inverse_of callback
syphax-bouazzouni Mar 20, 2023
bf464ca
Add metadataMappings to properties
hibadjebabria169 Mar 24, 2023
0110364
Add metadataMappings values
hibadjebabria169 Mar 24, 2023
166a131
Add missing properties (Object description properties) & pullLocation
hibadjebabria169 Mar 27, 2023
c13637e
Add obsoleteParent property
hibadjebabria169 Mar 27, 2023
f903e52
Add Missing Metrics properties
hibadjebabria169 Mar 27, 2023
5ebbfc7
fix json serializer nil exception (#79)
RaimiSol Mar 30, 2023
f2168c8
Merge branch 'master' into development
syphax-bouazzouni Apr 28, 2023
8e6d9d0
add some metrics attributes as embed values for Submissions
syphax-bouazzouni May 1, 2023
ab816a3
prevent a bug when an embed object is null (e.g submission with no m…
syphax-bouazzouni May 1, 2023
4ac9873
Merge pull request #82 from ontoportal-lirmm/feature/embed-meterics-f…
syphax-bouazzouni May 1, 2023
24ff1cc
Feature: return requested languages in @language - part 2 - multiple …
haddadzineddine May 10, 2023
7d26b4e
Merge branch 'development' into feature/add-requested-language-to-con…
haddadzineddine May 17, 2023
3f528a4
add get_languages and get_submission_languages helpers
haddadzineddine May 17, 2023
a6ccc9f
use get_languages helper to get the current context language
haddadzineddine May 17, 2023
e9bc9a9
extract get_language helper to get the requested language
haddadzineddine May 17, 2023
7e343bb
Merge branch 'development' into feature/add-request-language-to-context
haddadzineddine May 17, 2023
52bec13
Merge pull request #83 from ontoportal-lirmm/feature/add-request-lang…
syphax-bouazzouni May 17, 2023
2ce2afe
get serialized object submission only if include 'submission' attribu…
syphax-bouazzouni May 25, 2023
a27864c
call to read_restricted? only if instance_to_base_on not nil
syphax-bouazzouni May 31, 2023
0ddc070
Merge pull request #86 from ontoportal-lirmm/fix/read_restricted_base…
syphax-bouazzouni May 31, 2023
7cae43a
remove duplicated gzip? function
syphax-bouazzouni May 31, 2023
6874cbd
add zip_file function to the file utilities module
syphax-bouazzouni May 31, 2023
dd766f4
add archiving submission zipping old uploadedFile file test
syphax-bouazzouni May 31, 2023
3498aed
add removing archived submission unzipped folder test
syphax-bouazzouni May 31, 2023
5ca8653
implement and extract the new archive action in the submission process
syphax-bouazzouni May 31, 2023
d0e916d
prevent interconnected tests of zipped_submission process tests
syphax-bouazzouni May 31, 2023
3296b59
Merge pull request #87 from ontoportal-lirmm/fix/achived-submission-s…
syphax-bouazzouni Jun 14, 2023
9d91c7a
add archiving file size threshold for zipping uploaded file
syphax-bouazzouni Jun 14, 2023
a89a452
Merge branch 'fix/achived-submission-space-optimization' into develop…
syphax-bouazzouni Jun 15, 2023
ffc7b3e
Merge branch 'development' into feature/migrate-attrbiutes-metadata-t…
syphax-bouazzouni Jun 15, 2023
62a9be9
fix ontology submission yaml file syntax issues
syphax-bouazzouni Jun 15, 2023
5c39fcb
Merge pull request #72 from ontoportal-lirmm/feature/migrate-attrbiut…
syphax-bouazzouni Jun 15, 2023
190ed43
add AgentIdentifier model
syphax-bouazzouni Jun 15, 2023
fcb6799
add FOAF Agent model
syphax-bouazzouni Jun 15, 2023
1f5063f
update submission person and organization attributes to use Agent model
syphax-bouazzouni Jun 15, 2023
14b7b6b
update Agent model to enforce name to be unique and an auto generated ID
syphax-bouazzouni Jun 15, 2023
6f72110
disable extracting metadata for attributes of type
syphax-bouazzouni Jun 15, 2023
5439e70
rename Agent 'type' to 'agentType' to not conflicts with JSON-LD @type
syphax-bouazzouni Jun 15, 2023
2d2b421
remove property: :pageHome form Agent model because it does not exist
syphax-bouazzouni Jun 15, 2023
453f56c
make identifier model embded true
syphax-bouazzouni Jun 16, 2023
26315bc
add read write access rules for agent and identifier models
syphax-bouazzouni Jun 16, 2023
0b01ef3
remove firstName and lastName attribute from Agent model
syphax-bouazzouni Jun 18, 2023
d766f88
enforce Agent affiliations to be all of type Organization
syphax-bouazzouni Jun 18, 2023
f1edac8
enforce Identifier notation attribute to not be a URL
syphax-bouazzouni Jun 18, 2023
ca7b3af
add agent test for creation validity
syphax-bouazzouni Jun 18, 2023
6715128
enforce to show all attributes of the embed affiliations of Agents
syphax-bouazzouni Jun 19, 2023
eadedd0
add show_with_language param
haddadzineddine Jun 20, 2023
1cb2c73
update get_submission_languages
haddadzineddine Jun 20, 2023
ebb02ce
change identifier id to make be schemaAgency + notation
syphax-bouazzouni Jun 29, 2023
e980b8d
make agent identifiers list unique
syphax-bouazzouni Jun 29, 2023
3a3ddb2
make agent email attribute unique
syphax-bouazzouni Jun 29, 2023
c31d44f
make agent name no more unique
syphax-bouazzouni Jun 29, 2023
9e1e367
change agent affiliations attribute namespace to org:memberOf
syphax-bouazzouni Jun 29, 2023
596dc90
fix identifier id to be nil if notation or agentType empty
syphax-bouazzouni Jun 29, 2023
5701ad4
make email agent attribute optional
syphax-bouazzouni Jul 8, 2023
1911ef2
add is_organizaion validator to agent and submission affiliation attr…
syphax-bouazzouni Jul 8, 2023
3abd9ae
Merge pull request #91 from ontoportal-lirmm/support-multi-lang-part-02
syphax-bouazzouni Jun 28, 2023
e1b9af7
fix the class portal language test for the new multilanagual support
syphax-bouazzouni Jul 14, 2023
09a3f48
optimize request and portal lang tests by parsing the test ontology once
syphax-bouazzouni Jul 14, 2023
56b88e6
add test request all languages unit test
syphax-bouazzouni Jul 14, 2023
707b69d
use the new getters argument to show languages
syphax-bouazzouni Jul 14, 2023
f63ccf7
Merge branch 'development' into support-multi-lang-part-02
syphax-bouazzouni Jul 14, 2023
b1863f9
fix skos xl tests after the new multilangual support
syphax-bouazzouni Jul 14, 2023
e1ea76d
Merge pull request #93 from ontoportal-lirmm/support-multi-lang-part-02
syphax-bouazzouni Jul 14, 2023
4f09fb6
add test for multilingual terms indexation and search
syphax-bouazzouni Jul 14, 2023
0c4ba8c
update SOLR terms schema to add dynamicFields for values in all langs
syphax-bouazzouni Jul 14, 2023
7aaf942
make the indexation use map_attributes with include_languages enabled
syphax-bouazzouni Jul 14, 2023
9dd8db7
override the Ressource to_hash method in Class model to
syphax-bouazzouni Jul 14, 2023
8280ded
update the indexed document of a class model to include the dynamic …
syphax-bouazzouni Jul 14, 2023
cba5930
rename the getters to show_all_languages argument to include_languages
syphax-bouazzouni Jul 14, 2023
50619e6
Merge pull request #94 from ontoportal-lirmm/feature/support-multi-la…
syphax-bouazzouni Jul 20, 2023
2f51f55
add is_person validator to hasCreator and hasContributor attributes
syphax-bouazzouni Jul 29, 2023
4fdcbc3
embed all agents attributes for the submission model
syphax-bouazzouni Jul 29, 2023
9e8ab6c
fix submission deprecate_previous_submissions callback when no valid
syphax-bouazzouni Jul 27, 2023
04dc114
Merge branch 'development' into feature/add-persons-and-organization-…
syphax-bouazzouni Jul 30, 2023
32d4bb2
Merge pull request #90 from ontoportal-lirmm/feature/add-persons-and-…
syphax-bouazzouni Jul 30, 2023
e0e4335
refactor submission agent validators to extract common logic
syphax-bouazzouni Jul 31, 2023
98178fa
Merge remote-tracking branch 'origin/feature/add-persons-and-organiza…
syphax-bouazzouni Jul 31, 2023
08187ca
Merge branch 'feature/add-persons-and-organization-models' into devel…
syphax-bouazzouni Jul 31, 2023
5b910c8
update the include_ontology_views validator to test prefixed url id
syphax-bouazzouni Jul 31, 2023
2fa4299
add Agent type to submission endorsedBy attribute
syphax-bouazzouni Jul 31, 2023
43a1510
remove URI type of submission usedOntologyEngineeringTool attribute
syphax-bouazzouni Jul 31, 2023
8139d6c
Merge branch 'feature/add-persons-and-organization-models' into devel…
syphax-bouazzouni Jul 31, 2023
40e3d0c
remove class type for exampleIdentifier and keyClasses attributes
syphax-bouazzouni Aug 1, 2023
ec1e02d
Merge branch 'feature/add-persons-and-organization-models' into devel…
syphax-bouazzouni Aug 1, 2023
f260f6a
check if object.class respond to attributes before calling it
syphax-bouazzouni Aug 3, 2023
e15150e
check if the attribute method is a getter and not serialized method
syphax-bouazzouni Aug 3, 2023
fed3fa9
Merge branch 'feature/support-multi-langual-search' into development
syphax-bouazzouni Aug 3, 2023
c63460a
check if the attribute method is a getter and not serialized method
syphax-bouazzouni Aug 3, 2023
9168b6f
Merge branch 'feature/support-multi-langual-search' into development
syphax-bouazzouni Aug 5, 2023
2faf21b
use the same populate method as the attribute to show languages in pr…
syphax-bouazzouni Aug 5, 2023
7e799ff
Merge branch 'feature/support-multi-langual-search' into development
syphax-bouazzouni Aug 5, 2023
ab7ed5d
use the same populate method as the attribute to show languages in pr…
syphax-bouazzouni Aug 5, 2023
310b681
Merge branch 'feature/support-multi-langual-search' into development
syphax-bouazzouni Aug 5, 2023
26eee93
Fix bug in authorization.rb
syphax-bouazzouni Apr 14, 2023
a83e927
Improved support for OAuth 2.0 and SSO
syphax-bouazzouni Apr 14, 2023
6895dfd
bundle add oauth2
syphax-bouazzouni Apr 14, 2023
1d063e1
remove duplicate find_apikey in the authorization call
syphax-bouazzouni May 27, 2023
97934a9
add find_access_token method oauth2 authorization
syphax-bouazzouni May 27, 2023
502c376
add the unauthorized message the alternative text if oath2 enabled
syphax-bouazzouni May 27, 2023
c856310
add user oauth2 tests
syphax-bouazzouni Aug 3, 2023
41b89b9
enforce user email attribute to be unique
syphax-bouazzouni Aug 3, 2023
50a5d15
on user save (creation) send a notification if enabled in the arguments
syphax-bouazzouni Aug 3, 2023
7c9a7cc
add oauth2 providers configs
syphax-bouazzouni Aug 3, 2023
dc73cfa
implement oauth2 providers token authentification
syphax-bouazzouni Aug 3, 2023
93d7ddd
remove access token authorization to use only apikeys methods
syphax-bouazzouni Aug 3, 2023
afe1d02
fix tests after enforcing user email uniqueness
syphax-bouazzouni Aug 3, 2023
e4b3a6d
override security when sync user with an external provider
syphax-bouazzouni Aug 4, 2023
eed7c46
Merge pull request #95 from ontoportal-lirmm/feature/add-multi-provid…
syphax-bouazzouni Aug 21, 2023
d245da4
fix update_submissions_has_part callback to check if valid before saving
syphax-bouazzouni Aug 22, 2023
c96708f
Merge branch 'feature/migrate-attrbiutes-metadata-to-scheme-file' int…
syphax-bouazzouni Aug 22, 2023
4c89c83
Merge remote-tracking branch 'origin/development' into development
syphax-bouazzouni Aug 22, 2023
66e562d
add uri type enforcement to submission URI attribute
syphax-bouazzouni Sep 7, 2023
ad8bb86
disable attributes onUpdate callbacks feature
syphax-bouazzouni Sep 7, 2023
e3be9ae
fix URI extraction process to enforce RDF::URI instead of string
syphax-bouazzouni Sep 7, 2023
ed2feaa
fix test after URI enforced to be URI
syphax-bouazzouni Sep 8, 2023
1204ede
Merge pull request #98 from ontoportal-lirmm/fix/disable-some-new-mod…
syphax-bouazzouni Sep 8, 2023
5973e84
disable complex attriubtes validators and callbacks
syphax-bouazzouni Oct 10, 2023
04d053f
Update Object description properties
jonquet Oct 11, 2023
71a8414
Remove enforced values for pullLocation
jonquet Oct 11, 2023
a60b483
fix ontology submission attributes categories
syphax-bouazzouni Oct 12, 2023
dcf9c06
disable complex validators tests
syphax-bouazzouni Oct 12, 2023
f2e41eb
Merge branch 'development' into feature/disable-new-validators
syphax-bouazzouni Oct 12, 2023
f61e8f2
Merge pull request #100 from ontoportal-lirmm/feature/disable-new-val…
syphax-bouazzouni Oct 12, 2023
e5da5b5
embed for submission model all the attributes of the object metrics
syphax-bouazzouni Oct 20, 2023
57599ca
Merge pull request #104 from ontoportal-lirmm/feature/migrate-attrbiu…
syphax-bouazzouni Oct 20, 2023
e9ff8c1
Fix: ontology submission metadata file rework (#108)
jonquet Nov 1, 2023
b49ad10
add usage method to the agent models (#109)
syphax-bouazzouni Nov 3, 2023
22d5fdb
Fix multiple errors and syntax bugs in ontology_submission.ym file (#…
jonquet Nov 7, 2023
7d16b7b
Fix: optimize fetch all agents usages query (#111)
syphax-bouazzouni Nov 8, 2023
4c7dfa8
Fix: the lexvo language validator to no check the iso version (#112)
syphax-bouazzouni Nov 13, 2023
82fffaa
Fix: login auth type mail options (#113)
galviset Nov 22, 2023
a199eff
Fix: ontology submisison "includedInDataCatalog" and "accrualMethod" …
syphax-bouazzouni Nov 24, 2023
9dd8d03
Merge branch 'master' into development
syphax-bouazzouni Dec 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ gem 'rsolr', '~> 1.0'
gem 'rubyzip', '~> 1.0'
gem 'thin'
gem 'request_store'
gem 'jwt'

# Testing
group :test do
Expand All @@ -29,6 +30,7 @@ group :test do
gem 'simplecov'
gem 'simplecov-cobertura' # for codecov.io
gem 'test-unit-minitest'
gem 'webmock'
end

group :development do
Expand Down
12 changes: 11 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ GEM
coderay (1.1.3)
concurrent-ruby (1.2.2)
connection_pool (2.4.1)
crack (0.4.5)
rexml
cube-ruby (0.0.3)
daemons (1.4.1)
date (3.3.4)
Expand Down Expand Up @@ -75,6 +77,7 @@ GEM
faraday-rack (1.0.0)
faraday-retry (1.0.3)
ffi (1.16.3)
hashdiff (1.0.1)
hashie (5.0.0)
htmlentities (4.3.4)
http-accept (1.7.0)
Expand All @@ -84,6 +87,7 @@ GEM
concurrent-ruby (~> 1.0)
json (2.7.1)
json_pure (2.7.1)
jwt (2.7.1)
language_server-protocol (3.17.0.3)
launchy (2.5.2)
addressable (~> 2.8)
Expand Down Expand Up @@ -196,6 +200,10 @@ GEM
unicode-display_width (2.5.0)
uuid (2.3.9)
macaddr (~> 1.0)
webmock (3.19.1)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)

PLATFORMS
x86_64-darwin-21
Expand All @@ -211,6 +219,7 @@ DEPENDENCIES
faraday (~> 1.9)
ffi
goo!
jwt
libxml-ruby (~> 2.0)
minitest
minitest-reporters (>= 0.5.0)
Expand All @@ -232,6 +241,7 @@ DEPENDENCIES
sparql-client!
test-unit-minitest
thin
webmock

BUNDLED WITH
2.3.26
2.4.21
20 changes: 20 additions & 0 deletions config/config.rb.sample
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,26 @@ LinkedData.config do |config|
Goo.configure do |conf|
conf.main_languages = ['en']
end

#oauth
config.oauth_providers = {
github: {
check: :access_token,
link: 'https://api.github.com/user'
},
keycloak: {
check: :jwt_token,
cert: 'KEYCLOAK_SECRET_KEY'
},
orcid: {
check: :access_token,
link: 'https://pub.orcid.org/v3.0/me'
},
google: {
check: :access_token,
link: 'https://www.googleapis.com/oauth2/v3/userinfo'
}
}
end

#sometimes tmp by default cannot allocate large files
Expand Down
18 changes: 18 additions & 0 deletions config/config.test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,22 @@
config.property_search_server_url = SOLR_PROP_SEARCH_URL.to_s
config.sparql_endpoint_url = "http:://sparql_endpoint.com"
# config.enable_notifications = false
config.oauth_providers = {
github: {
check: :access_token,
link: 'https://api.github.com/user'
},
keycloak: {
check: :jwt_token,
cert: 'KEYCLOAK_SECRET_KEY'
},
orcid: {
check: :access_token,
link: 'https://pub.orcid.org/v3.0/me'
},
google: {
check: :access_token,
link: 'https://www.googleapis.com/oauth2/v3/userinfo'
}
}
end
Loading