Update login page

84 views
Skip to first unread message

Yue Ji

unread,
Feb 6, 2024, 5:19:32 PM2/6/24
to Dataverse Users Community
Hello,

In Dataverse login page, we would like to switch the layout of Institution login option to the top, with the default login layout to the bottom.

The code is in loginpage.xhtml, which is presented by two login <form>, one is for general login and the other one is for Institution login. We are interested to do similar like this: https://dataverse.unc.edu/loginpage.xhtml?redirectPage=%2Fdataverse.xhtml

What's the best way to do that, updating loginpage.xhtml directly or other way? Thanks!

Regards,

Yue

Donald Sizemore II

unread,
Feb 6, 2024, 7:38:45 PM2/6/24
to dataverse...@googlegroups.com
hello, does this database setting do (closely enough) what you need?
painstakingly pecked on my iphone.

On Feb 6, 2024, at 17:19, Yue Ji <yuej...@gmail.com> wrote:

Hello,
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/9b6a2e5e-2ede-4ed8-96ec-30a29c882cb5n%40googlegroups.com.

Yue Ji

unread,
Feb 7, 2024, 1:02:16 PM2/7/24
to Dataverse Users Community
Hello,
Thank you for the link! That information is about login function. We are fine for the login faction. 

We only need to change the login text layout, something like in the attachment shows.

Regards,
Yue

login_page.pdf

Don Sizemore

unread,
Feb 7, 2024, 1:05:16 PM2/7/24
to dataverse...@googlegroups.com
Hello,

You said you wanted your page to look like UNC Dataverse's — I run UNC Dataverse, and IIRC all I did was set our :DefaultAuthProvider to "shib" ?

Thank you,
Don


On Wed, Feb 7, 2024 at 1:02 PM Yue Ji <yuej...@gmail.com> wrote:
Hello,
Thank you for the link! That information is about login function. We are fine for the login faction. 

We only need to change the login text layout, something like in the attachment shows.

Regards,
Yue

On Tuesday, February 6, 2024 at 7:38:45 PM UTC-5 don.si...@gmail.com wrote:
hello, does this database setting do (closely enough) what you need?
painstakingly pecked on my iphone.

On Feb 6, 2024, at 17:19, Yue Ji <yuej...@gmail.com> wrote:

Hello,

In Dataverse login page, we would like to switch the layout of Institution login option to the top, with the default login layout to the bottom.

The code is in loginpage.xhtml, which is presented by two login <form>, one is for general login and the other one is for Institution login. We are interested to do similar like this: https://dataverse.unc.edu/loginpage.xhtml?redirectPage=%2Fdataverse.xhtml

What's the best way to do that, updating loginpage.xhtml directly or other way? Thanks!

Regards,

Yue

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/9b6a2e5e-2ede-4ed8-96ec-30a29c882cb5n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.

Sherry Lake

unread,
Feb 7, 2024, 1:06:22 PM2/7/24
to dataverse...@googlegroups.com
Hi Yue,

The command Don sent to set the default authority provider is what sets the first login option you see.

UVa has our "shiboleth" login as default and thus it is the first one displayed:



On Wed, Feb 7, 2024 at 1:02 PM Yue Ji <yuej...@gmail.com> wrote:
Hello,
Thank you for the link! That information is about login function. We are fine for the login faction. 

We only need to change the login text layout, something like in the attachment shows.

Regards,
Yue

On Tuesday, February 6, 2024 at 7:38:45 PM UTC-5 don.si...@gmail.com wrote:
hello, does this database setting do (closely enough) what you need?
painstakingly pecked on my iphone.

On Feb 6, 2024, at 17:19, Yue Ji <yuej...@gmail.com> wrote:

Hello,

In Dataverse login page, we would like to switch the layout of Institution login option to the top, with the default login layout to the bottom.

The code is in loginpage.xhtml, which is presented by two login <form>, one is for general login and the other one is for Institution login. We are interested to do similar like this: https://dataverse.unc.edu/loginpage.xhtml?redirectPage=%2Fdataverse.xhtml

What's the best way to do that, updating loginpage.xhtml directly or other way? Thanks!

Regards,

Yue

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/9b6a2e5e-2ede-4ed8-96ec-30a29c882cb5n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.

Yue Ji

unread,
Feb 7, 2024, 2:01:24 PM2/7/24
to Dataverse Users Community
Hi Don and Sherry,

Thank you so much! Yes, that's what I need. Sorry that I didn't understand shiboleth. Now I have the direction to do - "shiboleth"!

Best,
Yue

Yue Ji

unread,
Feb 15, 2024, 2:17:35 PM2/15/24
to Dataverse Users Community
Hi Don and Sherry,

We originally set login as: 
curl -X PUT -d builtin http://localhost:8080/api/admin/settings/:DefaultAuthProvider

Now we switched to our CAS login as the default by running this curl command: curl -X PUT -d shib http://localhost:8080/api/admin/settings/:DefaultAuthProvider

It's working as we expect. Thank you both for the great help!

Best,

Yue


Reply all
Reply to author
Forward
0 new messages