From 705dcdea83048d74c8944a41e9789ec7a3c37b2c Mon Sep 17 00:00:00 2001 From: Nanjiang Shu Date: Tue, 18 Feb 2025 11:44:54 +0100 Subject: [PATCH] [auth]: uniformed credential page for ega login and AAI login --- sda/cmd/auth/frontend/templates/ega.html | 16 +++++----------- sda/cmd/auth/main.go | 2 +- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/sda/cmd/auth/frontend/templates/ega.html b/sda/cmd/auth/frontend/templates/ega.html index 6e921f69a..ac3ec3f0a 100644 --- a/sda/cmd/auth/frontend/templates/ega.html +++ b/sda/cmd/auth/frontend/templates/ega.html @@ -31,18 +31,12 @@ Welcome, {{.User}}!

{{if .Token}} -

- Your access token is: -

-
{{.Token}}
- {{end}} - {{if .ExpDate}} -

- Your access token expires (UTC): -

-
{{.ExpDate}}
+

+ For uploading to the Inbox, your access token {{if .ExpDate}}(expires at {{.ExpDate}} UTC){{end}} is: +

+
{{.Token}}
{{end}} - Download inbox s3cmd credentials + Download credentials to upload to the Inbox Continue diff --git a/sda/cmd/auth/main.go b/sda/cmd/auth/main.go index 576b4266e..1fe808846 100644 --- a/sda/cmd/auth/main.go +++ b/sda/cmd/auth/main.go @@ -220,7 +220,7 @@ func (auth AuthHandler) getEGALogin(ctx iris.Context) { // getEGAConf returns an s3config file for an oidc login func (auth AuthHandler) getEGAConf(ctx iris.Context) { - auth.getS3Config(ctx, "ega", "s3cmd.conf") + auth.getS3Config(ctx, "ega", "s3cmd-inbox.conf") } // getOIDC redirects to the oidc page defined in auth.Config