Skip to content

Commit

Permalink
Merge branch 'develop' into 3353-batch-job-import
Browse files Browse the repository at this point in the history
Resolved Conflicts:
	src/main/java/edu/harvard/iq/dataverse/authorization/providers/builtin/DataverseUserPage.java
  • Loading branch information
landreev committed Feb 7, 2017
2 parents 2a1f915 + 1ba73ed commit 7d8b467
Show file tree
Hide file tree
Showing 225 changed files with 15,058 additions and 2,142 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ ehthumbs.db
Thumbs.db
.vagrant
*.pyc
*.swp
scripts/api/py_api_wrapper/demo-data/*
scripts/api/py_api_wrapper/test_data/*
scripts/api/py_api_wrapper/local-data/*
doc/sphinx-guides/build
faces-config.NavData
src/main/java/BuildNumber.properties
/nbproject/
/nbproject/
oauth-credentials.md

/src/main/webapp/oauth2/newAccount.html
10 changes: 5 additions & 5 deletions conf/httpd/conf.d/dataverse.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ ProxyPassMatch ^/error-documents !
# pass everything else to Glassfish
ProxyPass / ajp://localhost:8009/

<Location /shib.xhtml>
AuthType shibboleth
ShibRequestSetting requireSession 1
require valid-user
</Location>
#<Location /shib.xhtml>
# AuthType shibboleth
# ShibRequestSetting requireSession 1
# require valid-user
#</Location>

ErrorDocument 503 /error-documents/503.html
Alias /error-documents /var/www/dataverse/error-documents
Expand Down
28 changes: 28 additions & 0 deletions doc/Architecture/update-user-account-info.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
@startuml
actor user
participant DataverseUserPage as page
participant "provider: AuthenticationProvider" as prv
participant AuthenticationServiceBean as authSvc
user --> page: HTTP GET
== page init ==
...
page -> authSvc : lookupProvider(session.user)
activate authSvc
page <-- authSvc: provider
deactivate authSvc
...

== Can Update User? ==
page -> prv: isUserInfoUpdateAllowed()
activate prv
page <-- prv: true/false
deactivate prv
...

== Save User ==
user --> page: save()
page -> page: udi = createUserDisplayInfo()
page -> prv: updateUserInfo( udi )
page -> authSvc: updateAuthentictedUser( session.user, udi )

@enduml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"id":"shib",
"factoryAlias":"shib",
"enabled":true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"id":"github",
"factoryAlias":"oauth2",
"title":"GitHub",
"subtitle":"",
"factoryData":"type: github | userEndpoint: NONE | clientId: FIXME | clientSecret: FIXME",
"enabled":true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"id":"google",
"factoryAlias":"oauth2",
"title":"Google",
"subtitle":"",
"factoryData":"type: google | userEndpoint: NONE | clientId: FIXME | clientSecret: FIXME",
"enabled":true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"id":"orcid",
"factoryAlias":"oauth2",
"title":"ORCID",
"subtitle":"",
"factoryData":"type: orcid | userEndpoint: https://api.orcid.org/v1.2/{ORCID}/orcid-profile | clientId: FIXME | clientSecret: FIXME",
"enabled":true
}
4 changes: 2 additions & 2 deletions doc/sphinx-guides/source/api/apps.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Apps
====

The introduction of Dataverse APIs has fostered the development of apps that are listed at http://datascience.iq.harvard.edu/collaborations
The introduction of Dataverse APIs has fostered the development of apps that are listed at http://dataverse.org/integrations

The apps below are open source, demonstrating how to use Dataverse APIs. Some of these apps (and others) are built on :doc:`/api/client-libraries` that are available for Dataverse APIs.

Expand Down Expand Up @@ -40,7 +40,7 @@ https://github.com/CenterForOpenScience/osf.io/tree/master/website/addons/datave
GeoConnect
~~~~~~~~~~

GeoConnect allows Dataverse files to be visualized on http://worldmap.harvard.edu with a "Map It" button.
GeoConnect allows Dataverse files to be visualized on http://worldmap.harvard.edu with the "Explore" button. Read more about it in the :doc:`/user/data-exploration/worldmap` section of the User Guide.

https://github.com/IQSS/geoconnect

Expand Down
2 changes: 2 additions & 0 deletions doc/sphinx-guides/source/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ APIs. In 4.0, we require to get a token, by simply registering for a Dataverse a

Rather than using a production installation of Dataverse, API users are welcome to use http://demo.dataverse.org for testing.

Please note that the APIs in this guide are shipped with the Dataverse software itself but additional APIs are available if you install the "miniverse" application from https://github.com/IQSS/miniverse and give it read only access to your production Dataverse database. http://dataverse.org/metrics is powered by miniverse.

Contents:

.. toctree::
Expand Down
Loading

0 comments on commit 7d8b467

Please sign in to comment.